All resources

Guide 9 min read

Do AI crawlers render JavaScript? Why I'd put your key facts in plain HTML

Google runs your scripts. On the evidence we have, the bots behind ChatGPT, Claude and Perplexity read only what your server sends, so make sure your prices, hours and contacts are in that first response.

Do AI crawlers render JavaScript? Googlebot does. On the best evidence available, the crawlers behind ChatGPT, Claude and Perplexity don't run your scripts. They read only the raw HTML your server sends. So my position is simple: if your prices, services, opening hours and contacts only appear after client-side JavaScript runs, assume those assistants can't see them.

Client-side rendering means the server sends an almost empty page, and the visitor's browser then builds the content with JavaScript. A person sees the full page. A bot that doesn't run scripts sees an empty shell. I don't think you need to panic or rebuild everything. You need to make sure a short list of facts sits in plain HTML.

Do AI crawlers render JavaScript? What the evidence actually says

Most of what we know comes from one study. In December 2024, Vercel and MERJ analyzed crawler traffic across Vercel's network and concluded that "none of the major AI crawlers currently render JavaScript". ChatGPT's and Claude's crawlers did download JavaScript files, but they didn't run them. Content that was already in the initial HTML response, such as embedded JSON data, could still be read.

CrawlerOperatorUsed forRenders JavaScript?
GooglebotGoogleGoogle Search; Gemini uses the same infrastructureYes, through a rendering queue (Google)
ApplebotAppleApple's search featuresYes, browser-based (Vercel, 2024)
BingbotMicrosoftBing search"Generally" yes, but not at scale, according to an old statement (Bing, 2018)
GPTBotOpenAIModel trainingNo in 2024; possible delayed rendering since September 2026 (unconfirmed)
OAI-SearchBotOpenAIChatGPT search resultsNo in 2024; the same unconfirmed 2026 signal
ChatGPT-UserOpenAIFetches pages when a user asksNo (Vercel, 2024)
ClaudeBotAnthropicModel trainingNo (Vercel, 2024)
Claude-SearchBot, Claude-UserAnthropicSearch and user requestsNot measured
PerplexityBotPerplexityPerplexity search indexNo (Vercel, 2024)

There are two caveats. First, Vercel's script-fetching figures come largely from nextjs.org, the documentation site for a JavaScript framework. Fokal points out that this proves the bots fetch scripts at all. It doesn't tell you how often they'll fetch yours.

Second, the vendors say nothing on the subject. OpenAI's crawler page describes GPTBot, OAI-SearchBot and ChatGPT-User, each with its own robots.txt setting, but it doesn't mention JavaScript. As of 16 November 2026, Postbing found that none of the OpenAI, Anthropic or Perplexity bot pages say whether their crawlers render. The only related vendor statement I know of covers Anthropic's API web fetch tool, not ClaudeBot. According to GEO Toolbox, that tool does not support websites rendered dynamically with JavaScript.

Is OpenAI starting to render JavaScript in 2026?

Maybe, for some pages. In late September 2026, a developer who runs four Next.js sites published his server logs. As Digital Drift reported, from 25 September OAI-SearchBot and GPTBot began sending Next.js ?_rsc= prefetch requests. Those requests only fire after client-side JavaScript runs. He checked them against OpenAI's published IP ranges.

That is a real signal, but it isn't a rule. It comes from one person's sites, OpenAI made no announcement, and Cloudflare's overall OpenAI bot volume stayed flat that month. Most of the pages GPTBot rendered had not been fetched fresh that day. That points to delayed re-rendering of stored HTML, not rendering at crawl time. A separate log covering the period up to 24 September, cited by GEO Toolbox, recorded OAI-SearchBot making 10 script fetches across 1,738 page requests.

No one has reported anything similar for ClaudeBot or PerplexityBot. And even if OpenAI does render some pages later, a delayed render can leave ChatGPT working from an old price list. So I still assume "no", and I would not build a business plan on it.

If Google indexes your site, will ChatGPT see it too?

Not necessarily. This is the shortcut I disagree with most. Google processes JavaScript sites in three phases: crawling, rendering and indexing. Pages wait in a queue until a headless Chromium browser renders them. Google built that rendering system for its own crawler. On the evidence so far, the AI companies have not built the same thing for theirs.

Google itself still recommends server-side rendering or pre-rendering, partly because not all bots can run JavaScript. Gemini benefits from Googlebot's rendering. ChatGPT, Claude and Perplexity use different crawlers, so ranking well on Google tells you little about what those three can read.

Do you need to rebuild your whole site with server-side rendering?

No. Overreacting the other way costs too much. Server-side rendering (SSR) means the server builds the full HTML for each request before it reaches the browser. Moving a large single-page app to SSR can take months of developer time, and most of the site doesn't need it.

Vercel's own advice is to prioritize server rendering for critical content and keep client-side rendering for non-essential dynamic parts. Hydration is fine too. Hydration means the server sends finished HTML and JavaScript takes it over afterwards, so the content is already there for bots. The question isn't "Is the site built with React?" It's "Are the facts in the first response?" Usually that means a handful of pages: home, services, pricing, locations and contacts.

How to check what AI crawlers actually see on your site

Do these checks for each key page.

  1. Fetch the raw HTML. In a terminal, run:
    curl -s -A "GPTBot" https://yoursite.com/pricing | grep -i "your price or phone"
    If grep finds nothing, the fact isn't in the HTML the bot receives. You can also open view-source: in your browser. Don't use "Inspect element" for this: it shows the page after scripts have run.
  2. Turn JavaScript off. Disable it in your browser settings and reload the page. What you still see is roughly what a bot that doesn't run scripts gets. A spinner or a blank area is a warning sign.
  3. Read your server logs. Filter by AI bot user agents and look for three things: very small responses on pages that should be full (empty shells), 403 errors or challenge pages from your firewall, and 404 or 5xx errors. In Vercel's data, about a third of ChatGPT and Claude crawler requests hit 404 pages, against about 8% for Googlebot. User agents are easy to fake, so check that the bots are real before you draw conclusions. For example, match requests against the IP ranges the operators publish.

If you'd rather not dig through logs by hand, Chetver's Pulse shows which bots from ChatGPT, Claude, Gemini and others visit your site, which pages they read and where they run into errors, with advice on each problem.

The Pulse "Pages" view on a demo site shows which pages AI bots read and where they get errors. Empty shells and runs of 404s show up here.
The Pulse "Pages" view on a demo site shows which pages AI bots read and where they get errors. Empty shells and runs of 404s show up here. (Chetver dashboard on a demo site)

How to get your key facts into the initial HTML

Start with a list. What does an assistant need in order to recommend you correctly? Usually that's your services, prices or price ranges, opening hours, address, phone, service area and the kinds of clients you work with. Then make sure every item is in the first server response.

  • Server-render or prerender the key pages. SSR, static generation and prerendering services all work. Google calls serving bots a separate version a workaround, not a long-term solution, so prefer real HTML for everyone.
  • Put JSON-LD in the source. JSON-LD is structured data that describes your business in a machine-readable format. If a tag manager injects it in the browser, it reaches Googlebot but not crawlers that skip JavaScript. Even in the source, markup alone doesn't guarantee a mention.
  • Don't hide facts behind interactions. If text is in the HTML but collapsed inside a tab, it's still in the source. If it loads only on click or on scroll, it isn't.

Different stacks fail in different places. Here is what I'd check on each:

StackWhat to check
Plain React or Vue single-page appWhether the source contains anything beyond an empty root element. If not, prerender the key pages or add a static facts page.
Next.js or NuxtWhether the key pages are server-rendered or static, or whether they fetch their data in the browser.
Shopify themesWhether prices, delivery terms and reviews come from apps that load after the page does.
Wix and other buildersWhether hours, prices and contacts are in the page source or only inside widgets and embeds.

For complex apps where none of this is quick, publish one static page of business facts in plain HTML and link to it from your site. An llms.txt file can point AI tools to that page. It's a signal, not a guarantee. I cover the full set of signals in llms.txt and the other AI-crawler signals in 2026.

Chetver's AI Page is one way to do this. We build one page with your business facts from your website, you publish it on aipage.yoursite.com, and it comes with an llms.txt file. It puts your facts in one place for AI. It can't promise that any assistant will mention you.

What I would do in your place

  1. This week, run curl and view-source on your home, pricing, services and contacts pages, and search for each key fact.
  2. Write down the facts an assistant needs about your business, and mark the ones that are missing from the raw HTML.
  3. Fix those pages first: server-render or prerender them, move JSON-LD into the source, and take facts out of click-to-load blocks.
  4. Check your logs for AI bots that get empty shells, 403s, 404s or 5xx errors, once you've confirmed the bots are real.
  5. If your site is a complex app, publish a static facts page now rather than waiting for a rebuild.

Then measure. Look at what bots read and what assistants answer, both before and after the change. AI visibility is something you measure, not something anyone can promise. For a quick starting point, the free AI check shows how AI sees your business today.

Frequently asked questions

Does ChatGPT see content loaded by JavaScript?

Probably not reliably. In the Vercel and MERJ study, OpenAI's GPTBot, OAI-SearchBot and ChatGPT-User fetched JavaScript files but didn't run them. One developer's logs from September 2026 suggest OpenAI may re-render some pages later, but OpenAI hasn't confirmed this. Keep your key facts in the initial HTML.

Does Gemini see JavaScript content?

Yes, in most cases. Gemini relies on Google's crawling infrastructure, and Googlebot renders JavaScript in a headless Chromium browser. Pages wait in a rendering queue first, so updates can take a while to show up.

Is a React or Next.js site bad for AI visibility?

The framework isn't the problem. Rendering key content on the client is. A Next.js site that server-renders or statically generates its key pages sends full HTML that any bot can read. A plain client-side React app sends an empty shell unless you prerender it.

Does JSON-LD added through Google Tag Manager work for AI crawlers?

Usually not. A tag manager injects the markup in the browser after JavaScript runs. Googlebot can see it, but crawlers that skip scripts can't. Put JSON-LD directly in the page source instead.

Does llms.txt help if my site is a single-page app?

It can point AI tools to a readable version of your facts, but it can't make an empty shell readable. Pair it with a static HTML facts page or with prerendered key pages. Treat llms.txt as an extra signal, not a fix.

llms.txt and an AI Page for your site, written by us.

Basic

$29/ mo per site

or $290 a year, 2 months free

  • An AI Page and a file for AI bots, refreshed monthly
  • A weekly website check and a list of fixes
  • A summary of AI bot requests

30-day money-back guarantee · cancel anytime