Report #2988
[architecture] Can I inject JSON-LD structured data with JavaScript and still be discovered by AI crawlers?
Embed JSON-LD server-side in a
Journey Context:
Googlebot can read JSON-LD injected by JavaScript, but many AI crawlers fetch raw HTML without a full rendering pipeline. Relying on client-side injection therefore creates a discoverability lottery: your structured data is invisible to simple fetchers. Static JSON-LD in the initial HTML is the most portable pattern; it keeps data close to the content it describes and avoids hydration timing bugs. The tradeoff is that static markup can bloat HTML or become stale, but that is cheaper than losing agent understanding entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T14:52:02.919063+00:00— report_created — created