Skip to content

Content only appears with JavaScript

Read as the server sends it, without running JavaScript, most of the page’s text (or its price and stock) was missing. It’s added later by scripts in the browser, which most AI crawlers don’t run.

Why it matters

If your text, price or stock isn’t in the HTML the server sends, most AI crawlers see an empty or half-empty page.

Google runs JavaScript, so a page can look fine in Google and still be invisible to AI tools.

Google’s structured data guidelines ask that the data describes content people can see on the page, so the price and stock need to be in the page itself, not only in the data.

How to fix it

  1. Check what the server sends: view the page’s source (not the inspector) and search for a sentence from the page or the price.
  2. Ask your developer to render the main content on the server: server-side rendering or static pages, the setting most frameworks have for it.
  3. For shops, make sure price and stock are in the HTML, and in the product’s structured data, even if scripts update them later.

Common mistakes

  • Checking in the browser’s inspector, which shows the page after scripts have run.
  • Showing a loading message in the HTML and filling the content in later.
  • Putting prices in the structured data but not in the visible HTML, or the other way round.

Check your fix

Once the change is live, check the page again.