hn.today

The undocumented 249-file limit for Googlebot rendering

fullstackoptimization.com4 points0 comments
Screenshot of The undocumented 249-file limit for Googlebot rendering

A set of Googlebot rendering tests identifies an undocumented ceiling of 249 distinct page resources per render; the HTML document itself does not count. Resources include scripts, stylesheets, images, fonts, and fetch or XHR data requests. In tests across 13 page sizes, Google loaded every resource up to the ceiling, then consistently stopped at 249, leaving later-discovered files unrequested. A preregistered Rich Results Test study likewise found the same cutoff in all 12 runs above the limit, while all six runs below it loaded everything. Repeated tags using the same URL counted as one resource, but lazy-loaded images still counted.

The practical risk is that images or API calls can fill the queue before essential JavaScript loads, leaving a JavaScript-driven page empty in Google’s rendering even while Search Console reports that the URL is available and indexable. The tests showed that placing modulepreload hints for app scripts in the page head changed which files Google loaded: the resource limit remained, but the app rendered because its code came first. To avoid failures, prioritize code early, reduce distinct resource URLs, bundle small files, batch API requests, and include important content in the HTML. Search Console’s Page resources panel can reveal the problem: exactly 249 successful loads alongside “Other error” failures may indicate the cutoff, though genuine missing or blocked files must be distinguished from it.

Read on fullstackoptimization.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.