Developer finds homepage JavaScript feed hid 324 posts from Google's crawler
A blogger spent a month puzzled that Google was not indexing their stories, even though the sitemap listed them and the pages loaded correctly. The root cause was that the homepage's story feed was injected by JavaScript after load, so the raw HTML Google reads contained no links to any stories. A secondary feed page existed but was itself unlinked from the site, leaving crawlers no path to individual articles. The fix was to place 12 story links directly in the homepage HTML, allowing crawlers to reach stories without executing JavaScript. The author notes the bug was invisible in a normal browser, which runs scripts and displays the finished page.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in