- Google renders JavaScript, but in Vercel's December 2024 test the crawlers used by OpenAI, Anthropic and Perplexity fetched scripts without running them. Treat client rendered content as invisible to them.
- Test with view source and a bot user agent fetch, never the browser inspector. Body text, prices, FAQ answers, head tags and structured data must all be in the first HTML response.
- The fix is usually configuration, not a rebuild: static generation, server rendering or hybrid output for public templates, with CMS data fetched on the server.
Do AI crawlers render JavaScript?
Most do not, on the evidence available in October 2026. Google renders JavaScript for Search and Gemini, but a Vercel and MERJ study found that the crawlers used by OpenAI, Anthropic and Perplexity fetched JavaScript files without executing them. If your text, prices or FAQ answers appear only after scripts run, those engines probably see an empty page.
That single fact explains a pattern we meet often in audits. A company has a modern, fast, good looking site built as a single page application or on a headless CMS. It ranks reasonably in Google. Yet when you ask ChatGPT or Perplexity about the company's services, the answer is vague, out of date, or built entirely from directory listings and old press. The site is not being ignored on quality grounds. The crawler simply never received the words.
This article is for owners, marketers and developers of JavaScript heavy sites: React, Vue, Angular and Svelte applications, sites built with page builders that load sections by script, and headless setups where a CMS feeds a front end through an API. It covers what the engines document, what has been measured, how to test your own site in ten minutes, which rendering model to choose, and what to fix first. The wider technical picture sits on our technical GEO service page and in the generative engine optimization guide.
What does Google say about JavaScript and rendering?
Google is the one engine that documents its JavaScript handling in detail. Its JavaScript SEO basics guide (updated March 2026) describes three phases: crawling, rendering and indexing. Googlebot fetches a URL, queues it for rendering, then runs the page in a headless Chromium browser and indexes the rendered HTML. Google says a page may sit in the render queue for a few seconds but that it can take longer.
Four points in that guide matter for AI visibility, not just Google rankings.
- Not every bot runs JavaScript. Google says so directly and calls server side or pre rendering still a great idea because it makes sites faster for users and crawlers.
- Links must be real links. Google can only discover links that are anchor elements with an href. Click handlers on divs and buttons do not count.
- Use real URLs, not fragments. Loading different content behind #fragments is discouraged. The History API with real paths is the recommended approach.
- Do not rely on JavaScript to change robots or canonical tags. If Google sees a noindex in the original HTML it may skip rendering entirely, and a canonical changed by script to something other than the HTML value is a conflict you created.
Google is also clear about one fashionable workaround. Its page on dynamic rendering (updated December 2025) says dynamic rendering was a workaround and not a long term solution, and recommends server side rendering, static rendering or hydration instead. Dynamic rendering means detecting bots and serving them a separate pre rendered version. It still works for some teams, but you are maintaining two versions of every page and trusting a bot list to stay current.
For AI features specifically, Google's page on AI features and your website says there are no extra technical requirements beyond being indexed and eligible for a snippet. Because Gemini and Google's AI surfaces sit on Google's own infrastructure, a page Google renders and indexes correctly is in a reasonable position there. The open question is every other engine.
What has been measured about AI crawlers and JavaScript?
The most useful public measurement is the Vercel study published in December 2024 with MERJ. Vercel looked at crawler traffic across its network over a month and ran tests to see which bots executed scripts. Its findings:
- None of the major AI crawlers tested rendered JavaScript. That included OpenAI's crawlers, ClaudeBot, PerplexityBot, Meta's crawler and ByteDance's crawler.
- ChatGPT's crawler fetched JavaScript files in 11.50% of its requests and Claude's in 23.84%, but neither executed them. They download the code and read it as text, which does not reveal what the page would show.
- Gemini uses Googlebot's infrastructure and renders JavaScript fully. AppleBot also renders through a browser based crawler.
- Volume is not trivial. In the month measured, GPTBot made 569 million fetches on Vercel's network and Claude 370 million, together with AppleBot and PerplexityBot about 28% of Googlebot's 4.5 billion.
- Both ChatGPT's and Claude's crawlers hit 404 pages in about 34% of fetches, against about 8% for Googlebot. Vercel's interpretation was that the AI crawlers request many outdated or guessed URLs.
Two cautions. The data is from late 2024, and crawlers change. And it covers training and indexing crawlers, not every fetch an assistant makes when a user asks a question in real time. Still, nothing published since by OpenAI, Anthropic or Perplexity says their bots now execute JavaScript, and their documentation for OpenAI crawlers, Anthropic's crawlers and Perplexity's crawlers is silent on rendering. Until a vendor documents otherwise, assume the safe case: no JavaScript.
| Crawler | Used for | Runs JavaScript? |
|---|---|---|
| Google Search, AI Overviews, AI Mode, Gemini grounding | Yes, documented | |
| Bing and Microsoft Copilot | Not confirmed for AI use | |
| OAI-SearchBot and GPTBot | ChatGPT search and training | No, in Vercel's 2024 test |
| Claude search and training | No, in Vercel's 2024 test | |
| Perplexity search | No, in Vercel's 2024 test |
Microsoft's position is less clear than it used to be. Search Engine Journal reported in February 2026 that Bing's rewritten Webmaster Guidelines dropped the earlier section on JavaScript rendering. That does not mean Bingbot stopped rendering, only that Microsoft no longer documents it there. For Copilot visibility we treat server rendered HTML as the safe default too.
Client rendered page
- An empty root div and script tags
- Text appears only after scripts run
- Head tags set by JavaScript
- Schema injected by a tag manager
Server rendered page
- Headings and body copy in the HTML
- Prices and FAQ answers readable at once
- Final title, canonical and robots tags
- JSON LD shipped in the template
How can you tell if your site has the problem?
You do not need a crawler simulator. You need to compare what the server sends with what the browser shows. Do this for five to ten priority pages: the home page, top service or product pages, pricing and the about page.
- View the raw source. In a browser, open view source (not the developer tools Elements panel, which shows the rendered page). On a client rendered app you will often see a near empty body with a single root div and a list of script tags.
- Search the source for three things. A sentence from the main body copy, a price or key number, and an answer from the FAQ. If any is missing, that content depends on JavaScript.
- Check the head. Title, meta description, canonical link, robots meta and structured data should all be present in the raw source, with final values.
- Fetch as a bot. From a terminal, request the page with a crawler user agent, for example
curl -A "OAI-SearchBot" https://example.com/services/, and search the response. This also catches CDNs or firewalls that serve bots a challenge page. - Disable JavaScript and reload. In browser settings, turn JavaScript off. What remains is roughly what a non rendering crawler gets.
- Check navigation. In the raw source, confirm menu and in page links are anchor tags with real href values, not buttons wired to a router.
The free AI crawler access checker covers the robots and access side, and the AI citation readiness checker looks at whether a page's content is readable as delivered. Neither replaces looking at the raw source yourself.
What must be in the first HTML response?
Think of the initial HTML as the version of your page that every machine reader is guaranteed to get. Anything you need an engine to know belongs there. Interactive extras can load later.
- The main heading and every section heading in the correct order.
- The full body copy for the page, including the direct answer paragraph under each question heading.
- Prices or price ranges, service areas, opening hours, contact details and anything else buyers ask about.
- FAQ questions and answers, as visible text, not collapsed content that only loads when clicked.
- Title tag, meta description, canonical link and robots meta with final values.
- Structured data as JSON LD in the HTML, matching the visible text.
- Author or reviewer name and a visible date on articles and guides.
- Navigation and in body links as anchor tags with real URLs.
- Product details on commerce sites: name, price, availability and the key specifications.
What can safely stay client side: chat widgets, carousels of extra images, personalisation, calculators, maps, comment threads, analytics. If the page still makes complete sense without them, you are fine.
Which rendering model should you choose?
The fix is almost never a rebuild. Modern frameworks support server output, and most of the work is configuration and moving data fetching to the server for the templates that matter. The right model depends on how often content changes and how many pages you have.
| Model | What the crawler gets | Best for | Watch for |
|---|---|---|---|
| Static generation | Complete HTML built ahead of time | Marketing sites, docs, blogs | Rebuild time on large sites |
| Server side rendering | Complete HTML built per request | Frequently changing pages, commerce | Server load and slower first byte |
| Hybrid or incremental | Static HTML refreshed on a schedule | Large catalogues, mixed sites | Stale pages if refresh is too slow |
| Pre rendering service | Snapshot served to bots only | Legacy apps you cannot change soon | Two versions to keep in sync |
| Client side only | Mostly an empty shell | Logged in dashboards, tools | Invisible to most AI crawlers |
Decision rules we use:
- Choose static generation if pages change less than daily and you have fewer than a few thousand of them. It is the cheapest and fastest output and the hardest to get wrong.
- Choose server side rendering if prices, stock or schedules change often and must be correct for every visitor and crawler.
- Choose hybrid if you have a large catalogue where most pages change rarely but some change hourly.
- Use a pre rendering service only if a framework migration is months away and you need crawlers to see content now. Plan its removal on day one.
- Keep client side only for areas that sit behind a login or have no reason to be quoted by an engine.
Hydration, where the server sends complete HTML and JavaScript then makes it interactive, is what most modern framework setups do by default once server output is switched on. It is also what Google recommends in place of dynamic rendering.
From safest to riskiest for AI crawlers
How do headless CMS setups go wrong?
Headless architecture is not the problem. A CMS sending content through an API to a server rendered front end can be the cleanest setup there is. The problems come from how the front end consumes it.
Content fetched in the browser
The most common failure: the page template loads, then a script calls the CMS API from the visitor's browser. Humans see the content a moment later. Crawlers that do not run scripts see the template only. The fix is to fetch from the CMS on the server, at build time or request time.
SEO fields that never reach the page
Many headless content models have fields for meta title, description and canonical, but nobody wired them into the head of the rendered page, so every page ships with the same default title. Check that each field in the CMS actually appears in the raw source.
Preview and staging URLs that leak
Preview deployments on separate subdomains often get crawled and indexed. Each one is a duplicate of your site, sometimes with draft content. Protect previews with authentication or a noindex header, and make sure canonicals on production point to production.
Structured data added by script
Tag managers and front end components often inject JSON LD after load. Google can read it after rendering. Non rendering crawlers cannot. Ahrefs noted in its May 2026 schema study that it did not test JavaScript injected schema at all, which tells you how little is known there. Put structured data in the server output.
Commerce sites on headless storefronts face the same issues at scale; the ecommerce GEO page and our Shopify notes cover catalogue specifics.
Example, hypothetical: moving a React marketing site to server output
Example, hypothetical: a B2B software company in Austin runs its 120 page marketing site as a React single page application. Content comes from a headless CMS through browser side API calls. The team notices that ChatGPT describes the product using a feature list from two years ago, which matches an old review site, not the company's own pages.
Week one is diagnosis. View source on the pricing page shows a root div and eleven script tags. A curl request with an OAI-SearchBot user agent returns the same shell. The title tag on every page reads the product name only, because the head is set by a script. Server logs show GPTBot and ClaudeBot visiting regularly, with a high share of 404s on URLs from a site structure retired in 2024.
Week two is the decision. The developers choose static generation with scheduled refresh for the marketing pages, because content changes weekly at most, and leave the logged in app untouched. They move CMS calls to build time and map the meta title, description and canonical fields into the server rendered head.
Week three is migration of the 25 most important templates and pages first: home, pricing, the five product pages, integrations, comparison and about. Structured data moves from the tag manager into the template. Old URLs that crawlers keep requesting get permanent redirects to their closest current equivalents.
Week four is verification. Raw source now contains body text, prices, FAQ answers and final head tags on all 25 pages. The bot curl test returns full content. The sitemap is regenerated and submitted. The team records a baseline of 18 buyer prompts across four engines and books a retest six weeks later.
What the company should not expect: an immediate change in what assistants say. Crawlers have to revisit, indexes have to refresh, and models that answer from older data may lag further. What it has gained is certainty that every engine now receives the same words its human visitors read.
What mistakes do teams make on JavaScript heavy sites?
- Testing in the browser inspector. The Elements panel shows the rendered page and makes everything look fine. Always test the raw source or a bot fetch.
- Assuming Google's behaviour applies to everyone. Ranking well in Google proves Googlebot renders your site. It says nothing about OpenAI, Anthropic or Perplexity crawlers.
- Lazy loading text on scroll. Sections that load as the visitor scrolls never load for a crawler that does not scroll. Load text in the HTML and lazy load only images.
- Hiding answers in tabs and accordions that fetch on click. Collapsed content is fine if the text is in the HTML. It is invisible if the click triggers a fetch.
- Soft 404s. Single page apps often return a 200 status with an error message for missing pages. Return a real 404 or redirect, as Google's guide suggests, so crawlers stop requesting dead URLs.
- Blocking script and API paths in robots.txt. This hurts Google's rendering and saves nothing. Allow the resources the page needs to render.
- Forgetting the CDN. Bot protection on the edge can serve a challenge page to every AI crawler. Test with a bot user agent from outside your network.
Each fix is modest on its own. The combined effect is that the site stops depending on one engine's ability to run code. Our GEO checklist places these checks in order alongside the access and content layers.
The Austin example in four weeks
- 1DiagnoseView source and bot fetch show an empty shell
- 2DecideStatic output for marketing pages, app unchanged
- 3Migrate25 key pages first, schema into templates
- 4VerifyRaw HTML complete, sitemap resubmitted, baseline set
What is documented, and what is still unknown?
- Documented, as of October 2026. Google renders JavaScript and recommends server side rendering, static rendering or hydration over dynamic rendering. OpenAI, Anthropic and Perplexity publish crawler names, purposes and robots.txt behaviour, but not rendering behaviour.
- Measured. Vercel's December 2024 test found major AI crawlers fetched but did not execute JavaScript, and recorded high 404 rates for ChatGPT's and Claude's crawlers.
- Unknown. Whether user triggered fetchers such as ChatGPT-User, Claude-User or Perplexity-User render pages in all cases. Whether any AI crawler has added rendering since late 2024. How Bing's crawler handles JavaScript for Copilot grounding now that the guideline text has gone.
The direction of risk is one sided. Serving complete HTML costs you nothing with engines that render and protects you with engines that do not. Waiting for vendors to confirm rendering support leaves your content invisible in the meantime. For how retrieval works once the crawler has the page, see how AI search engines choose sources, and for the Google side, how to get cited by Gemini.
What should you do this week?
- Run the view source test on your five most important pages and note what is missing.
- Run a bot user agent fetch on the same pages from outside your office network.
- List every place content is loaded by script: CMS calls, page builder widgets, tag manager injected schema, lazy loaded sections.
- Ask your developer which rendering modes your framework supports and what it would take to switch the marketing templates to static or server output.
- Check server logs for AI crawler 404s and redirect the old URLs they keep requesting.
- Record a prompt baseline before any change so you can compare later.
If you want this handled end to end, the GEO Pilot covers custom and headless sites as standard: we audit rendering in week one, implement fixes through your Git repository or staging environment in week two, with your approval on every change, and retest after 30 days for a fixed $999. Our page on GEO for custom websites explains how we work with development teams. For context on how much AI crawling there is, see the AI search statistics we track.
Sources
- Understand JavaScript SEO basics, Google Search Central, March 2026
- Dynamic rendering as a workaround, Google Search Central, December 2025
- AI features and your website, Google Search Central, December 2025
- The rise of the AI crawler, Vercel and MERJ, December 2024
- Overview of OpenAI crawlers, OpenAI, accessed October 2026
- Does Anthropic crawl data from the web, and how can site owners block the crawler?, Anthropic, April 2026
- Perplexity crawlers: user agents and robots.txt behavior, Perplexity, accessed October 2026
- Bing adds GEO to official guidelines, expands AI abuse definitions, Search Engine Journal, February 2026
- We tracked 1,885 pages adding schema. AI citations barely moved, Ahrefs, May 2026









