Answers / AEO and AI search
Can AI crawlers read a JavaScript website?
Google can, because it renders pages before indexing them. OpenAI, Anthropic and Perplexity have not said whether their crawlers run JavaScript, and an independent study in 2024 found that the main ones did not.
Sources checked .
Google processes JavaScript sites in three phases: crawling, rendering and indexing. "Once Google's resources allow, a headless Chromium renders the page and executes the JavaScript" (JavaScript SEO basics). Rendering is queued, so text that needs scripts can be indexed later than text in the HTML.
The AI companies
The crawler pages from OpenAI, Anthropic and Perplexity do not mention JavaScript at all.
Vercel, a web hosting company, studied crawler traffic on its own network and wrote in December 2024 that "none of the major AI crawlers currently render JavaScript" (Vercel). That is one company's data and it is almost two years old, so treat it as a warning to test, not as a settled fact.
How to test a page
- Open the page, choose View Source (not Inspect), and search for a sentence from the main text. If it is not there, a crawler that does not run scripts cannot see it.
- Or run the free website check. It reads the HTML the server sends, without running scripts, and reports how many words of the main text it found.
The fix
Send the main text in the HTML: server rendering or static pages for anything a customer or a crawler needs to read. Scripts can still add the interactive parts afterwards.
Sources
- Understand the JavaScript SEO basics Google Search Central
- Overview of OpenAI crawlers OpenAI
- Does Anthropic crawl data from the web, and how can site owners block the crawler? Anthropic
- Perplexity crawlers Perplexity
- The rise of the AI crawler, 17 December 2024 Vercel (independent study)
These companies change their documentation without notice. If a link or a quote no longer matches, email a correction.
Related questions
How do I block or allow AI crawlers?
Use robots.txt: name each crawler in a User-agent line and give it Allow or Disallow. Decide per crawler, because some collect training data and others fetch pages for search answers.
What is the difference between AEO and SEO?
SEO is about ranking in search results; AEO is about being read and quoted inside an AI answer. They share most of the work, and Google's own guide says optimising for its AI features is still SEO.
How do ChatGPT and Perplexity choose their sources?
Neither company publishes how it ranks sources. What they do publish is the first condition: the page has to be reachable by their search crawler, OAI-SearchBot for ChatGPT and PerplexityBot for Perplexity.
Rather have it fixed for you?
The Kingdom Builder fixes what the check finds: the wording, the tags, the schema and what AI crawlers can read. It starts with the free check.