Updated on 22 November 2026, by João Leite, Founder of murmur.
AI bots can only partly read JavaScript: in December 2024, the bots from OpenAI, Anthropic and Perplexity did not run it. The text that this code builds was left out, and what already came ready in the HTML reached them. The measurement was published by Vercel, a company that hosts websites, and in it Gemini and AppleBot built the entire page. Today, Anthropic writes that the tool that opens pages in the Claude API does not read sites built with JavaScript.
- Reading JavaScript, for a bot, means running the code and building the page. A bot that does not run it receives only the HTML that the server sends, and the page built in the browser arrives with an empty body.
- In 2024, the ChatGPT and Claude bots downloaded JavaScript without executing it. JavaScript files were 11.5% of the ChatGPT bots’ requests and 23.84% of Claude’s, in the measurement that Vercel published.
- What comes in the initial HTML arrives, even in JSON. Vercel wrote that this content could still be indexed, because AI models interpret content that is not HTML.
- You can test it with the bot’s name. A request for the page with the name OAI-SearchBot in the identification shows what the server sends to anything that identifies itself that way.
- In the Mindo case study, the starting point was a site that was empty for the bot. With the guide on a subdomain of the brand, Mindo’s recommendation in ChatGPT rose from 12% of the questions in its market, in June, to 23% in July 2026.
For an AI bot, reading JavaScript means executing the code and building the page
For an AI bot, reading JavaScript means running the code that comes with the page and building the text it creates, just as a visitor’s browser does. AI bots (crawlers) are the programs that AI companies send to websites to read the pages. A bot that only downloads the HTML and does not run the code is left with what the server sent ready, and with none of what JavaScript would add afterward.
MDN, the developer documentation maintained by Mozilla, separates the two ways of building a page. In MDN’s glossary, server-side rendering is generating the HTML on the server and sending it ready to whoever requested it, and the same entry lists as an advantage that search engines and other bots read the content without needing to execute JavaScript. Client-side rendering, by MDN, is generating the HTML with JavaScript inside the browser.
In client-side rendering, the server sends an almost empty page and a code file, and the browser is what writes the text on the screen. For the bot that does not run the code, this page arrives with an empty body: the tab title may be there, and the paragraph that answers the buyer’s question is not. The right question for the developer is just one: does the page come ready from the server or is it built in the browser?
Which AI bots can read JavaScript: downloading the file, rendering and what the documentation says today
The AI bots that built the page with JavaScript, in the 2024 measurement, were Gemini and AppleBot; the OpenAI bots, ClaudeBot and PerplexityBot did not build it. The page-reading tool of the Claude API, which API users turn on to open a URL, does not read sites built with JavaScript, according to Anthropic’s documentation today.
| Bot or tool | Renders JavaScript, according to the source | What the source records | Source and date |
|---|---|---|---|
| OpenAI bots (OAI-SearchBot, ChatGPT-User and GPTBot) | did not render | JavaScript files were 11.5% of requests, downloaded without execution | Vercel, December 2024 |
| ClaudeBot, from Anthropic | did not render | JavaScript files were 23.84% of requests, downloaded without execution | Vercel, December 2024 |
| PerplexityBot | did not render | was among the major AI bots that did not build the page | Vercel, December 2024 |
| Gemini | rendered | used the Googlebot infrastructure, with the page built in full | Vercel, December 2024 |
| AppleBot | rendered | built the page with a browser-based bot | Vercel, December 2024 |
| Page-reading tool of the Claude API | does not read sites built with JavaScript | for a page that needs a browser, Anthropic points to the browser tool | Anthropic documentation, accessed on 10 November 2026 |
For site owners, the text that the buyer needs to read has to come ready from the server. Of the bots measured in 2024, only Gemini and AppleBot built the page, and the ChatGPT, Claude and Perplexity bots were left with the HTML that the server sent. The Claude API’s reading tool opens pages at the request of API users, and it is not Claude’s search bot.
AI bots downloaded JavaScript without reading it: what Vercel measured in 2024
The AI bots of ChatGPT and Claude downloaded the JavaScript files of the pages and did not execute them, in the measurement that Vercel published on 17 December 2024. Vercel wrote, in the study on the growth of AI bots: “The data indicates that while ChatGPT and Claude crawlers do fetch JavaScript files (ChatGPT: 11.50%, Claude: 23.84% of requests), they don’t execute them.” Downloaded and not executed, the file does not produce the text it would render on the screen.
The same page included a useful caveat for anyone who already has a site built in JavaScript. The content that came in the server’s first response, such as data in JSON, could still be indexed, because AI models can interpret content that is not HTML. Vercel also recorded that Gemini used the Googlebot infrastructure, with the page built in full, and that AppleBot built the page with a browser-based bot. The two were the exception on the list, not the rule.
The measurement is from December 2024, and each bot’s behavior may have changed since then. That is why testing on your own site is worth more than the 2024 list.
To read JavaScript, the Claude API points to the browser tool
To read a page built with JavaScript, Anthropic points to the browser tool of the Claude API, and not the page-reading tool. In the documentation of the page-reading tool, Anthropic writes: “The web fetch tool currently does not support websites dynamically rendered with JavaScript.” The same page says to use the browser tool for pages that need a real browser, to render the JavaScript, click or fill in a form.
The choice between the two tools is up to whoever programs on top of the Claude API. The browser tool opens the page as a person would open it and reads what JavaScript renders. The AI agent that uses the site like a person to complete a task is another case, covered in the guide on the AI agent on the company website.
How to test whether AI bots can read your site’s JavaScript, in five steps
To test whether AI bots can read your site’s JavaScript, compare what the server sends with what appears on the screen, in five steps:
- Open the page source and look for the sentence that answers the buyer’s question.
- Turn off JavaScript in the browser, reload the page and see whether the text is still on the screen.
- Request the page with an AI bot’s name in the identification, such as OAI-SearchBot, and look for the same sentence in what comes back.
- Ask the developer whether the page comes ready from the server or is built in the browser.
- After the fix, ask the AI models the buyer’s questions again and see whether the page appears among the sources.
Step 1 is done through the browser shortcut that the technical site checklist shows, and step 2 is explained in the guide to llms.txt.
The request with the bot’s name is the test that comes closest to what the bot receives. The identification (user agent) is the name that the program sends to the server when it requests the page, and OpenAI publishes on its bots page the name of the search bot, OAI-SearchBot. In a terminal, the request with that name looks like this:
curl -sL -A OAI-SearchBot seusite.com.br/pagina/ > pagina-robo.html
Open the pagina-robo.html file in a text editor and look for the sentence with the answer. If it is not there, the server does not send that text to a request that presents itself with the bot’s name. The test shows what the server sends to that name, and does not prove what the bot receives: a protection service that checks the IP address of the requester may respond differently to the real bot.
When the site builds the page in the browser: the three options for AI bots to read the text
When the site builds the page in the browser, the text reaches AI crawlers through one of three paths, all of them with the HTML ready before it leaves the server:
- Generate the HTML on the server on every request. The server builds the page and sends the text already rendered, and JavaScript is reserved only for on-screen interaction.
- Generate the pages ready before publication. The site generates each page once, already with the text, and publishes the ready files.
- Publish the content at an address that delivers the text already rendered. The pages that answer the buyer’s questions sit in a place separate from the application, such as a brand subdomain.
The choice among the three is up to the developer and depends on how the site was built. The third path, the subdomain one, is in the guide on content on a subdomain. Anyone using an off-the-shelf platform finds the case study for each one in the guide on a site built in Lovable, Framer or Wix.
At Mindo, murmur started with a site the crawler saw as empty
In the Mindo case study, the starting point was JavaScript: the studio’s site was assembled in the browser, like an application, and what reached the AI crawlers was an empty page. murmur, a GEO-first agency that puts brands into AI answers across every question in the sector, recorded this starting point in the diagnostic of 29 May 2026. On that day, Mindo, a B2B motion design studio in São Paulo, did not appear in any of the answers that murmur measured across three AI models.
The guide went live at guia.mindo.com.br and was fully online on 22 June 2026. On 25 and 26 June, ChatGPT recommended Mindo in 12% of the questions in its market; on 13 and 14 July 2026, in the same questions, in 23%. The number comes from the whole body of work, with a guide that answers clients’ questions, and not only from the text that began reaching the crawler ready-made.
Each guide murmur writes goes to a subdomain of the client’s brand, built and maintained by murmur. The main site stays as it is, and the content remains with the client when the contract ends.
Frequently asked questions
Does an AI crawler read content that loads after the page opens?
It did not, in the crawlers measured in 2024: in the measurement Vercel published in December of that year, OpenAI’s crawlers, ClaudeBot and PerplexityBot did not execute the code that builds that content. What already comes in the HTML the server sends reaches them. That is why the text that answers the buyer sits in the server’s first response, and not in a block that appears later.
Do AI crawlers download JavaScript files?
They did, in the 2024 measurement: JavaScript files were 11.5% of ChatGPT crawlers’ requests and 23.84% of Claude’s, according to the measurement Vercel published. Downloading was not executing, and the text the code would build did not reach those crawlers.
Does JSON data inside the HTML reach the AI crawler?
It could: Vercel wrote, in December 2024, that the content of the server’s first response, such as JSON data, could still be indexed, because AI models interpret content that is not HTML. The safest path remains the text written in the page’s HTML, which reaches even the crawler that does not run the code.
Does the Claude API read a page built with JavaScript?
The Claude API’s web fetch tool does not read a site built by JavaScript, according to Anthropic’s documentation. The same API’s browser tool does, when the person using the API enables it for the page that needs a real browser.
Where to start
After testing the code, what remains is knowing whether AI models already cite your site when the buyer asks. With the site address, murmur’s free diagnostic returns on screen the AI answers for the questions in your market, with no sign-up, in under two minutes, and the full report arrives by email. murmur’s sector studies show the brands that AI models named in each sector measured.
Read also
- llms.txt: What It Is, What It Is For, and Whether It Works to Get Cited by AI
- Technical checklist to appear in ChatGPT and other AI models: what to check on your site
- How to get your company to appear in ChatGPT: the step by step, with no registration or ads
References
- Vercel, “The rise of the AI crawler”, 17 December 2024. The crawlers that did not render JavaScript, the 11.5% and the 23.84% of requests, the content of the initial HTML and Gemini and AppleBot, which did render. https://vercel.com/blog/the-rise-of-the-ai-crawler (accessed on 10 November 2026).
- Anthropic, documentation for the Claude API’s web fetch tool, undated page. The tool does not read a site built with JavaScript, and the browser tool is for pages that need a browser. https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool (accessed on 10 November 2026).
- MDN Web Docs, Mozilla, SSR glossary entry, undated page. Server-side rendering and the crawlers that read the content without executing JavaScript. https://developer.mozilla.org/en-US/docs/Glossary/SSR (accessed on 10 November 2026).
- MDN Web Docs, Mozilla, CSR glossary entry, undated page. Client-side rendering, with the HTML generated by JavaScript in the browser. https://developer.mozilla.org/en-US/docs/Glossary/CSR (accessed on 10 November 2026).
- OpenAI, “Overview of OpenAI Crawlers”, undated page. The name of OAI-SearchBot, ChatGPT’s search crawler. https://developers.openai.com/api/docs/bots (accessed on 10 November 2026).
- murmur, Mindo case study. https://murmur.marketing/en/cases/mindo/ (accessed on 6 November 2026).