Skip to content
Nazmul Nikhil
Menu

Pages Have Too Large HTML Size (Semrush): Trim Pages Over 2 MB

Semrush flags pages whose HTML is over 2 MB. Google only reads the first 2 MB. Here's what bloats HTML and how to slim it down.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Pages Have Too Large HTML Size (Semrush): Trim Pages Over 2 MB
Photo: Suhas Hanjar on Unsplash

In short

Semrush flags "Pages have too large HTML size" when a page's HTML is over 2 MB. Googlebot reads only about the first 2 MB of an HTML file, so content past that point may not be indexed, and big HTML is slow to load. Find what's inflating the file and move it out of the HTML.

Most pages are well under 2 MB of HTML. When one isn't, something is usually being inlined that shouldn't be.

Common causes

Cause Fix
Images embedded as base64 Serve them as image files
Large inline JSON (app state, product data) Send only what the page needs
Inline SVG icon sets repeated per item Use a sprite or external files
Huge product or post lists on one page Paginate
Page builder wrappers nested many levels deep Simplify the layout

How to find the cause

Save the page source (Ctrl+U, then save) and look for the longest lines or blocks. Search for base64, and <script tags with large data.

WordPress: page builders and "inline critical CSS" settings are common causes. Shopify: apps that inject inline JSON per product. Webflow and Wix: very long pages with many sections. Custom builds: check server-side rendered state in frameworks like Next.js or Nuxt.

This guide isn't affiliated with or endorsed by Semrush.

Sources and references

TAGSSemrush Site AuditSemrush html size too largePage html sizeHtml too large
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com