Trakis

Trakis · Rules

Very low text-to-HTML ratio

Pages where visible text is less than 5% of the HTML. The page is mostly markup and scripts. Everything is downloaded on every visit and every crawl, and the actual content is a small part of it.

NoticeCONTENT-004 · Content · checked on every page

Low text-to-HTML ratio: what it measures, what it does not, and when to act

Updated 14 October 2026.

The text-to-HTML ratio is the page’s visible text divided by the size of the HTML the server sends. Everything that is not text a reader sees counts in the second number: tags, attributes, inline styles and scripts, and data written into the page for JavaScript to read. This check flags a page where the text is under 5% of it.

What the ratio is not. It is not a measure Google publishes. We searched Google’s Search documentation for it on 14 October 2026 and found no mention of a text-to-HTML ratio. Tools draw their own lines:

  • Semrush lists it as a warning when the ratio is 10% or less, and gives ranking and loading speed as its reasons (Semrush).
  • Trakis flags it under 5%, as a notice, the lightest kind of finding, weighing least in the grade.

A low ratio is a symptom, not a fault. Its message says what was measured and stops there: the ratio does nothing by itself. What it can point to is weight the page carries for no reader, and that weight has costs that are documented.

What the weight can cost.

  • A size limit. Googlebot reads the first 2MB of an HTML file, counted uncompressed. Past that it stops, and only the part already downloaded is considered for indexing (Google). A page that writes megabytes of data in front of its content can lose the content.
  • Every visit, every crawl. Data written into the HTML comes down again with every page view and every crawl. The same data in a separate file can be cached by the browser and fetched only when it is needed.
  • A heavy page to build. When the weight is markup, wrappers inside wrappers from a page builder, the browser has more to lay out. Lighthouse warns when the body has more than about 800 nodes and errors past about 1,400, for the memory and the layout work they cost (Chrome for Developers).

The demo shop, as it is. Its category pages carry the data a size-and-colour filter would read: every variant of every product, with its stock, as JSON in the page itself:

<script type="application/json" id="filter-data">
{"category":"boots","products":[{"sku":"HC","name":"Harbour Chelsea", …
 "variants":[{"sku":"HC-36-BLA","size":36,"colour":"black","stock":0},
             {"sku":"HC-37-BLA","size":37,"colour":"black","stock":3}, … 33 for each product, 330 in all]}
</script>

The page’s text is one sentence and ten product names, 585 characters. Its HTML is 24,554: the ratio is 2.4%. In the demo’s report on the example page it is one line, “Very low text-to-HTML ratio”, on the three category pages. At 24 KB the page is nowhere near Google’s 2MB; that is why this is a notice. The same pattern on a category of 2,000 products is not.

The fix depends on what the weight is:

  • Data: load it when it is needed. Put the filter’s data in its own file, /shop/boots/filter.json, and fetch it when the visitor opens the filter. The page’s HTML goes back to about 2 KB, and the file is cached.
  • Data: send only what is read. A size filter needs which sizes are in stock, not every image address and code.
  • Markup: fewer layers. A template that wraps each block in five <div>s, with styles written into every element, is the cause, not the content. Styles belong in a stylesheet, which is downloaded once.
  • Or nothing. A page at 4% with 40 KB of HTML and its content near the top is fine. Fix the pages where the HTML runs to hundreds of kilobytes, or where the content comes last.

Check it yourself. Measure the HTML the server sends, not the page after JavaScript has run: in a terminal, curl -s https://example.com/page | wc -c gives its size in bytes. In the browser, View source shows the same HTML, and in it the large <script> and <style> blocks are usually the weight.

How the audit decides.

  • It takes the HTML as the server sent it, and the text of its body with scripts, styles and templates left out. Text over HTML, under 5%, is CONTENT-004.
  • Pages under 2,000 characters of HTML are left alone: a ratio of almost nothing says almost nothing.
  • It reports the ratio and the two numbers, and no cause. Whether a page is built by JavaScript is decided elsewhere, by the check that opens it in a browser.

Sources, read on 14 October 2026: Google Search Central, Googlebot (file size limits) · Chrome for Developers, Lighthouse: Avoid an excessive DOM size · Semrush Knowledge Base, Site Audit issues list (low text-HTML ratio).

How common it is

In our study of 330 small sites, read from Common Crawl’s October 2026 archive (up to 100 pages a site), 81.8% of them had this problem on one page or more.

Where it usually comes from

Page builders and themes that wrap every block in many layers of markup, inline styles and scripts, and large inline data for JavaScript.

If your SEO tool says…

The same problem, under the names other tools give it. Where a tool draws its line elsewhere, the note says how:

  • Semrush: “Pages with low text-HTML ratio”. 10% or less; this check flags pages under 5%. Semrush’s page.

Wording from each tool’s own documentation, read on 13 October 2026.

How to fix it

  • The pages carry far more code than text. Move scripts and styles into files the browser caches, and remove templates the page does not use.
  • It is rarely a ranking problem on its own; it makes every page slower to download and to read.

Shown for an example shop at www.example.com. In a Trakis report the same fix comes with your own addresses and the list of your pages it applies to.

How to check it yourself

Save the page and compare its size with the length of its visible text. Inline <script> and <style> blocks are the usual weight.

What it looks like in a report

Notice Only 1.6% of the page is text: 4,200 characters inside 260,000 of HTML.

The page is mostly markup and scripts, downloaded on every visit. (An example shop; the numbers are illustrative.)

How the audit counts it

CONTENT-004 is a notice in the content category, and weighs lightly in that category’s score. When it appears on many pages built from the same template, the report shows it once, with the number of pages it covers — because one change in the template fixes all of them.

If the finding is deliberate on your site, it can be accepted as intentional in the report. It then leaves the list and the score, and comes back on its own if what it shows changes.

Other content checks

Find it on your site

A free Trakis audit runs this check and the other 66 on your site, and tells you on how many pages each one sits. Or go back to all the rules.