Low Text-to-HTML Ratio Due to Self-Push Tags in Next.js 14 (app router) #80709
Unanswered
Developer-6698
asked this question in
Help
Replies: 1 comment
-
1. Can you optimize or defer
|
Data Type | Can Move/Defer? | Notes |
---|---|---|
NEXT_DATA |
No | Minimize data passed; can’t change placement or timing |
JSON-LD (LD+JSON) | No (SEO) | Must be inline for SEO; can split, but not defer |
Fonts/Analytics | Yes (partly) | Use <Script strategy="lazyOnload"> , self-host fonts if possible |
Hydration Data | Yes (partly) | Only hydrate what’s needed; lazy-load additional data |
TL;DR:
- Minimize what you serialize and inline.
- Only hydrate essential data.
- Accept “low” text-to-HTML from Lighthouse if your visible content is strong and SEO scripts are necessary.
- Don’t break Google’s FAQ/schema parsing by moving LD+JSON out of the initial HTML.
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm currently working on a blog website that fetches large content on the server side (e.g., blog articles, schema data, etc.). I’ve been running into an SEO issue flagged by tools like Lighthouse and other analyzers — low text-to-HTML ratio.
After some inspection, the main contributors seem to be:
As a result, while my actual visible content is meaningful and text-rich, the overall HTML payload includes a lot of head content and serialized data, throwing off text-to-HTML ratio evaluations.
My questions:
I'd love suggestions, workarounds, or future roadmap insights for this. Since text-to-HTML ratio is used by some SEO validators (even if not a core Google metric), it would be great to align Next.js output with best practices for content-heavy sites.
Thanks in advance!
Additional information
Example
view-source:https://onlyclassactions.com/lawsuits/hernia-mesh-lawsuit
Beta Was this translation helpful? Give feedback.
All reactions