HTML size
HTML size. Googlebot reads only the first 2 MB of an HTML response (other crawlers have similar caps). Anything after that — including the article text or the JSON-LD block — does not exist as far as indexing is concerned.
Key takeaways
- Check: HTML size is a site-level check in the technical group.
- Fix: Move inline <style> and <script> blocks into external files; defer non-critical scripts.
- Not this: Base64 images inside the HTML.
- Effort: 30 min, site-level check; the audit drafts the fix from your own page.
Why does “HTML size” matter?
Page builders that inline every stylesheet, icon sprite and script can push a page past the cap without the author noticing.
| Check | HTML size |
|---|---|
| Layer | site-level check |
| Group | Technical |
| Typical effort | 30 min |
| Weight in the score | 2 on a scale of 1 to 3 |
| Checked by | the website, the Chrome extension and the WordPress plugin (same analyser, 69 checks) |
How do you fix “HTML size”?
- Check the raw HTML size (this audit reports it).
- Move inline <style> and <script> blocks into external files; defer non-critical scripts.
- Put JSON-LD in the <head> or directly after the opening <body>, never at the end of the document on a heavy page.
- Lazy-load comment threads and related-post widgets instead of rendering 200 items into the HTML.
What should you not do?
- Inlining SVG sprites of hundreds of icons into every page.
- Base64 images inside the HTML.
Example
A 3.1 MB page whose article starts at byte 2.4 MB is an empty page to Googlebot.
Frequently asked questions
How long does it take to fix "HTML size"?
About 30 min. It usually needs a developer or the hosting panel.
Is "HTML size" checked per page or for the whole site?
It is a property of the whole site, so fixing it once covers every page. The website, the Chrome extension and the WordPress plugin run the same check.
What is the most common mistake with "HTML size"?
Inlining SVG sprites of hundreds of icons into every page.
Sources
- Google: overview of crawlers and fetchers
- Google: introduction to robots.txt
- OpenAI: GPTBot, OAI-SearchBot and ChatGPT-User
- Google: AI features and your website
About the author
Related checks
Does your page pass this check? The audit runs all 69 and drafts the fix for you.