JavaScript-rendered content: what AI crawlers miss
Last updated:
If your store builds its product pages with JavaScript in the browser, many AI assistants may see an almost empty page. Vercel's study of crawler traffic, published in December 2024, found that none of the major AI crawlers it analysed render JavaScript, including OpenAI's GPTBot and Anthropic's ClaudeBot. Google's crawler does render it, which is why a store can rank on Google and still be invisible to AI answers. The fix is to make sure the content that matters is in the HTML your server sends.
Why it matters now
Shopping questions are moving into AI assistants and AI search, and those systems can only recommend or quote what their crawlers could read. Vercel measured hundreds of millions of monthly requests from GPTBot and ClaudeBot on its network alone. These crawlers do download JavaScript files, but they don't execute them: anything your page only shows after scripts run (product descriptions, prices, reviews, FAQ blocks) is simply not there for them.
Check what your HTML really contains
The browser inspector shows the page after JavaScript has run, so it hides the problem. Instead:
- Open a product page and choose View Page Source (not Inspect).
- Search the source for the product name, the price and a sentence from the description.
- Or fetch the page from a terminal:
curl -s https://your-store.com/products/linen-shirt | grep -i "linen shirt"
If the source is mostly an empty <div id="app"></div> with script tags, your content is client-rendered.
What to fix first
Prioritise the content that answers shoppers' questions:
- Product name, price, availability and description on product pages.
- Category intro text and product lists on category pages.
- Structured data (Product, Organization, FAQ): JSON-LD injected by JavaScript is also invisible to these crawlers. See Organization structured data.
- Shipping and returns information that shoppers ask assistants about.
Client-side rendering is fine for things crawlers don't need: cart widgets, recently viewed items, chat, personalised recommendations.
How to fix it
- Use server-side rendering (SSR) or pre-rendering for public pages. Frameworks such as Next.js, Nuxt and SvelteKit support it, and many headless storefronts can be switched to it per route.
- Render the essentials in the initial HTML even if the rest of the page is interactive: the description and price can be in the HTML, with JavaScript adding the variant picker on top.
- Avoid loading the main content from a separate API call after page load when the server could include it directly.
- Re-check after each theme or app change: a new review widget or page builder can quietly move content back into the browser.
Being readable is only half of it: also make sure these crawlers are allowed in your robots.txt.
How Averifly helps
Averifly's GEO rules flag pages whose HTML is largely an empty shell with the real content built in the browser, and pages with no structured data. Run a free scan to see which templates are affected, and see our rules for the full list of checks.
Frequently asked questions
Do AI crawlers execute JavaScript?
Most don't. Vercel's analysis of crawler traffic found that none of the major AI crawlers it studied, including OpenAI's GPTBot and Anthropic's ClaudeBot, rendered JavaScript. Google's crawler and Applebot were the exceptions.
How can I see what an AI crawler sees on my store?
Look at the raw HTML the server sends: use View Source (not the browser inspector), or fetch the page with curl. If product names, prices and descriptions are not in that HTML, crawlers that don't run JavaScript won't see them.
Do I need to rebuild my store to fix this?
Usually not. Most modern frameworks offer server-side rendering or pre-rendering, and most hosted platforms already render product pages on the server. The fix is often limited to the pages or blocks that are built only in the browser.
