Menu

1 / 2

Googlebot Reads 2MB of HTML. I Measured 130 Pages on My Next.js Sites: Under 3% Was Text

DEV Community: nextjs·Posting Dude·14 days ago
#msfuoncI
#devtonextjs#devto#dev#bytes#html
Long article (1792 words) — no AI summary yet.
Reading 0:00
15s threshold

Google's docs say Googlebot only reads the first 2MB of an HTML file for Search, and the cutoff is on the uncompressed bytes. Anything after that byte is not fetched, not rendered, not indexed. Google wrote a whole post about it in March, Inside Googlebot , and the warning in it is basically "inline base64 images and huge inline scripts can push your real content past the cutoff".

I run 13 small Next.js sites (launch boards, a directory, four press sites, two comparison sites and Posting Dude). App Router pages ship a lot of inline script, so I wanted to know how close I am to that line. This morning I pulled 10 URLs from each sitemap (the homepage plus 9 random ones), 130 pages, and measured the HTML with curl and a small Python script.

Short version: 0 of 130 pages are anywhere near 2MB. The biggest is 639 KB.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.