# 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. While...

Source: https://seocode.io/checks/structured-data-javascript-initial-html

[All checks](https://seocode.io/checks) / Structured data

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

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Read the docs](https://seocode.io/docs)

## 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 Contentdevelopers.google.com](https://developers.google.com/search/docs/crawling-indexing/javascript/generate-dynamic-content)

Using a framework? [Next.js](https://seocode.io/nextjs-seo) · [SvelteKit](https://seocode.io/sveltekit-seo) · [Nuxt](https://seocode.io/nuxt-seo)

## Related checks.

JSON-LD and the entity markup that earns rich results and grounds AI answers.

- [01 · No structured data (JSON-LD) found Info Structured data helps search engines understand your content and can unlock rich results (star ratings, breadcrumbs, etc.).](https://seocode.io/checks/missing-json-ld)

- [02 · Invalid JSON in JSON-LD block Critical A JSON-LD structured data block contains invalid JSON.](https://seocode.io/checks/invalid-json-ld)

- [03 · FAQ structured data is deprecated Warning Google has deprecated the FAQ rich result feature.](https://seocode.io/checks/faq-schema-deprecated)

- [04 · Breadcrumb rich results only appear on desktop Info Google has clarified that breadcrumb rich results only appear on desktop search results, not on mobile.](https://seocode.io/checks/breadcrumbs-desktop-only)

- [05 · Review schema missing comment or author requirements Info Google recommends implementing a review setup that only accepts ratings and reviews accompanied by both a review comment and the author's name.](https://seocode.io/checks/review-snippet-requires-comment)

- [06 · Practice problem structured data is deprecated Warning The practice problem structured data type is no longer shown in Google Search results.](https://seocode.io/checks/practice-problem-schema-deprecated)

[All 38 structured data checks](https://seocode.io/checks#schema)

## Where we wrote about this.

- [What changed in SEO, Search and AI: October 26, 2026](https://seocode.io/news/changed-google-ai-search-october-26-2026)

- [Version 1.9.2: No new checks, but big shifts in how AI engines find and cite your site](https://seocode.io/news/version-1-9-2-no-new-checks-but-big-shifts-ai-engines-find)

## Every check, on every pull request.

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

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Get a website audit](https://seocode.io/audit?from=checks-cta)

Free for public repositories · no credit card
