AI Visibility Academy · Chapter 03
Content that only appears with JavaScript
If a page's important text only appears after JavaScript runs in the browser, assume most AI crawlers won't see it. Google renders JavaScript for Search. OpenAI, Anthropic and Perplexity don't say in their crawler documentation whether their bots do, and public measurements suggest many don't. The safe fix is to put the text that answers buying questions in the HTML your server sends.
Who renders and who doesn't
Google says Googlebot queues pages for rendering, runs their JavaScript in a headless Chromium browser and indexes the result, though rendering can take a while. Its guide to generative AI features says Google can process content within JavaScript as long as it isn't blocked. Even so, Google still calls server-side or pre-rendering a great idea, partly because not all bots can run JavaScript.
For the AI crawlers, one public measurement is a December 2024 Vercel analysis of crawler traffic on its network. It found that none of the major AI crawlers it tracked, including those from OpenAI, Anthropic, Meta, ByteDance and Perplexity, rendered JavaScript; OpenAI's and Anthropic's fetched script files but didn't run them. Applebot did render pages, and Gemini relied on Googlebot's infrastructure. That is one company's measurement at one point in time, not a documented policy, and crawlers can change.
What tends to go missing
- Pages built entirely in the browser, where the server sends an empty shell.
- Prices, plan details or stock levels loaded from an API after the page appears.
- Review widgets and FAQ answers pulled in by a third-party script.
- Tabs, accordions and "load more" lists that fetch their content on click.
- Text drawn into images or a canvas.
How to check a page
Open the page, then view its source (not the inspector, which shows the page after JavaScript ran). Search the source for a sentence that matters, such as your price or your one-line description. You can do the same with curl on the command line, or by turning JavaScript off in your browser and reloading.
If the sentence is in the source, crawlers that don't render can read it. If it's missing, they most likely can't.
How to fix it
Render the pages that matter on the server, or generate them as static HTML at build time. Many modern frameworks support both. Keep JavaScript for what it's good at: interaction, filtering, animation. For tabs and accordions, ship the content in the HTML and let JavaScript show and hide it, rather than fetching it on click.
Where to start
This week, run the source check on five pages: your homepage, your main product page, pricing, one comparison page and your FAQ. Fix the first page where a buying answer is missing. Then make sure crawlers are allowed to fetch those pages at all, using the steps in check your AI crawler access in two minutes.