| Rule ID | crawl/html-size |
| Category | Crawlability |
| Scope | Per-page |
| Severity | error |
| Weight | 5/10 |
Solution
Googlebot truncates HTML documents at 2MB—content beyond that limit is silently ignored during indexing. Move inline styles and scripts to external files, defer non-critical content, lazy-load below-the-fold sections, and remove unnecessary markup. Keep critical SEO content (title, meta, headings, main body) near the top of the document so it’s indexed even if truncation occurs.Options
This rule supports the following configuration options:| Option | Type | Default | Description |
|---|---|---|---|
warn_bytes | unknown | undefined | Byte size to trigger warning |
error_bytes | unknown | undefined | Byte size to trigger error (Googlebot truncation limit) |
Configuration Example
squirrel.toml
Enable / Disable
Disable this rule
squirrel.toml
Disable all Crawlability rules
squirrel.toml
Enable only this rule
squirrel.toml