Skip to content

All checks / Structured data

Structured data not in initial HTML (JavaScript-generated)

Google recommends putting structured data markup (especially for ecommerce/product pages) in the initial HTML response for best results.

Warning structured-data-javascript-initial-html

In SEOCode's checks since 9 May 2026


Why this matters.

Google recommends putting structured data markup (especially for ecommerce/product pages) in the initial HTML response for best results. While JavaScript-generated structured data is supported, it requires Googlebot to fully render the page before the markup is available, which can delay indexing and rich result eligibility. Additionally, ensure your server can handle increased traffic if generating structured data with JavaScript.

Runs on .jsx .tsx .vue .svelte · Warnings are reported on the pull request but do not block the merge.


How to resolve it.

Move your JSON-LD structured data into the initial server-rendered HTML response rather than injecting it via JavaScript. For Next.js/Nuxt/SvelteKit, render the JSON-LD block server-side.

SEOCode writes this fix for you

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.


Where this comes from.

01

Generate Dynamic Content

developers.google.com

Using a framework? Next.js · SvelteKit · Nuxt




Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

Free for public repositories · no credit card