JSON-LD only after JavaScript
JSON-LD only after JavaScript. Some SEO plugins and themes inject structured data with JavaScript after the page loads. A browser sees it, the Rich Results Test (which renders) sees it, and most AI crawlers — which do not run JavaScript — never do.
Key takeaways
- Check: JSON-LD only after JavaScript is a site-level check in the technical group.
- Fix: Switch the plugin/theme to server-side output (Yoast and Rank Math do this by default; a caching or optimisation plugin that defers inline scripts is the usual culprit — exclude ld+json from deferral).
- Not this: Deferring all inline scripts in an optimisation plugin without excluding JSON-LD.
- Effort: 15 min, site-level check; the audit drafts the fix from your own page.
Why does “JSON-LD only after JavaScript” matter?
The extension compares the raw HTML with the rendered page to catch exactly this.
| Check | JSON-LD only after JavaScript |
|---|---|
| Layer | site-level check |
| Group | Technical |
| Typical effort | 15 min |
| Checked by | the website, the Chrome extension and the WordPress plugin (same analyser, 69 checks) |
How do you fix “JSON-LD only after JavaScript”?
- View the page source (not the inspector) and search for application/ld+json. If it is absent there but present in the inspector, it is injected.
- Switch the plugin/theme to server-side output (Yoast and Rank Math do this by default; a caching or optimisation plugin that defers inline scripts is the usual culprit — exclude ld+json from deferral).
- Re-run the extension; the warning disappears when the raw HTML carries the block.
What should you not do?
- Deferring all inline scripts in an optimisation plugin without excluding JSON-LD.
Example
Raw HTML: 0 JSON-LD blocks. Rendered DOM: BlogPosting + Organization → crawlers see none of it.
Frequently asked questions
How long does it take to fix "JSON-LD only after JavaScript"?
About 15 min. It usually needs a developer or the hosting panel.
Is "JSON-LD only after JavaScript" 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 "JSON-LD only after JavaScript"?
Deferring all inline scripts in an optimisation plugin without excluding JSON-LD.
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.