GEO Pilot: we optimise your site for AI search in 30 days, $999.See what is included →

Platforms

GEO for JavaScript and headless sites: do AI crawlers render JavaScript, and what to do if they don't

Most AI crawlers tested so far fetch JavaScript without running it. Here is what Google and the AI vendors document, how to test your own site in ten minutes, which rendering model to choose, and how headless setups go wrong.

Nitesh Dan CharanBy , Founder · 17 October 2026 · 15 min read
GEO for JavaScript and headless sites: do AI crawlers render JavaScript, and what to do if they don't
Key takeaways
  • 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.

CrawlerUsed forRuns JavaScript?
GooglebotGoogle Search, AI Overviews, AI Mode, Gemini groundingYes, documented
BingbotBing and Microsoft CopilotNot confirmed for AI use
OAI-SearchBot and GPTBotChatGPT search and trainingNo, in Vercel's 2024 test
Claude-SearchBot and ClaudeBotClaude search and trainingNo, in Vercel's 2024 test
PerplexityBotPerplexity searchNo, 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.

What the crawler receives

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
Based on Vercel's 2024 finding that major AI crawlers did not execute JavaScript.

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.

  1. 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.
  2. 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.
  3. Check the head. Title, meta description, canonical link, robots meta and structured data should all be present in the raw source, with final values.
  4. 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.
  5. Disable JavaScript and reload. In browser settings, turn JavaScript off. What remains is roughly what a non rendering crawler gets.
  6. 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.

Watch for false passes. Some frameworks embed page data as a large JSON blob in the HTML for hydration. Your sentence may appear inside that blob, so a text search passes, but the content is not in readable HTML elements. A crawler reading the page as a document may not treat that blob as page text. Look for the sentence inside a real paragraph or heading tag.

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.

ModelWhat the crawler getsBest forWatch for
Static generationComplete HTML built ahead of timeMarketing sites, docs, blogsRebuild time on large sites
Server side renderingComplete HTML built per requestFrequently changing pages, commerceServer load and slower first byte
Hybrid or incrementalStatic HTML refreshed on a scheduleLarge catalogues, mixed sitesStale pages if refresh is too slow
Pre rendering serviceSnapshot served to bots onlyLegacy apps you cannot change soonTwo versions to keep in sync
Client side onlyMostly an empty shellLogged in dashboards, toolsInvisible 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.

Rendering models

From safest to riskiest for AI crawlers

Complete HTML for every crawlerEmpty shell for most AI crawlers
Static generationServer side renderingPre rendering for botsClient side only
Example positions based on the rendering table above, not measured data.

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.

Hypothetical migration

The Austin example in four weeks

  1. 1
    DiagnoseView source and bot fetch show an empty shell
  2. 2
    DecideStatic output for marketing pages, app unchanged
  3. 3
    Migrate25 key pages first, schema into templates
  4. 4
    VerifyRaw HTML complete, sitemap resubmitted, baseline set
Condensed from the hypothetical example. It shows the sequence, not an outcome.

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?

  1. Run the view source test on your five most important pages and note what is missing.
  2. Run a bot user agent fetch on the same pages from outside your office network.
  3. List every place content is loaded by script: CMS calls, page builder widgets, tag manager injected schema, lazy loaded sections.
  4. Ask your developer which rendering modes your framework supports and what it would take to switch the marketing templates to static or server output.
  5. Check server logs for AI crawler 404s and redirect the old URLs they keep requesting.
  6. 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

What the research says

Evidence behind this page

Checked figures from published studies, each with its source and date. More in our AI search statistics.

7.8%

Only about 37% of the top 10,000 domains had a robots.txt file, and GPTBot was disallowed in 7.8% of top domains' robots.txt files (Google-Extended 5.6%, ClaudeBot under 5%).

Sample: Top 10,000 domains (Cloudflare Radar). Period: As of publication

Primary sourceCloudflareJuly 2025
No extra requirements

"There are no additional requirements to appear in AI Overviews or AI Mode, nor other special optimizations necessary"; Google says both features may use query fan-out across subtopics.

Sample: Official guidance

Primary sourceGoogle Search CentralDecember 2025 (last updated)
57%

57% of AI Overview citations went to pages that do not rank in Google's organic top 10.

Sample: 167,867,680 AI Overview citations, US. Period: June 15 – Aug 15, 2026

Primary sourceConductorSeptember 2026

Cite this guide

You may quote this page with a link. Where a figure comes from another study, please credit that study too.

GrowingAI. (2026, 18 October 2026). GEO for JavaScript and headless sites: do AI crawlers render JavaScript, and what to do if they don't. https://thegrowingai.com/geo-for-javascript-and-headless-sites/

Our clients

Businesses we work with

Real businesses we have worked with. We show their results only with the limits stated.

Quality Mascots Costumes logoRMS Stonex logoSudarshan Stoneix logo
Emtech Computers logo
Happy Home IC logo
Trade Like Master logo
One Percents logo
Arc Studio logo

FAQ

Questions people ask

Short, straight answers. If yours is not here, ask us and we reply within one working day.

Ask a question
Can ChatGPT read content loaded by JavaScript?

Probably not when it crawls. A December 2024 Vercel and MERJ study found that OpenAI's crawlers fetched JavaScript files without executing them, so content inserted by scripts after page load was not seen. OpenAI does not document rendering behaviour. The safe approach is to put all important text, prices and answers in the HTML your server sends.

Does Google AI Mode see JavaScript content?

Google renders JavaScript with a headless Chromium browser before indexing, so content Google indexes from your JavaScript pages can be used in AI Overviews and AI Mode. Rendering can be delayed by a queue, and Google still recommends server side or static rendering because not every bot can run scripts and it makes pages faster.

Is a single page application bad for AI search?

A single page application that renders only in the browser is a poor fit for AI search, because most AI crawlers receive an almost empty HTML shell. The same application with server side rendering or static generation for its public pages is fine. Logged in areas that no engine needs to quote can stay client side.

What is the difference between server side rendering and static generation?

Server side rendering builds complete HTML for each request, which suits content that changes often, such as prices or stock. Static generation builds HTML ahead of time and serves the same file to everyone, which is faster and simpler for pages that change rarely. Both give crawlers complete content; hybrid setups refresh static pages on a schedule.

Is dynamic rendering still a good idea for AI crawlers?

Google now describes dynamic rendering as a workaround and not a recommended solution, and suggests server side rendering, static rendering or hydration instead. Serving bots a separate snapshot can still help a legacy app in the short term, but you must keep two versions in sync and maintain an accurate list of bot user agents.

How do I check what an AI crawler sees on my page?

View the raw page source rather than the browser inspector, and search it for a sentence of body copy, a price and an FAQ answer. Then request the page from a terminal with a crawler user agent such as OAI-SearchBot and search the response. Anything missing from both is probably invisible to AI crawlers that do not run JavaScript.

Should structured data be added through Google Tag Manager?

It is better placed in the server rendered HTML. Google can read JSON LD injected by a tag manager after rendering, but crawlers that do not execute JavaScript cannot. Even Ahrefs' May 2026 schema study did not test injected markup, so its effect is unknown. Put structured data in the page template, matching the visible text.

Do headless CMS sites need special GEO work?

Not special, but specific. The CMS is rarely the problem; the front end is. Make sure content is fetched from the CMS on the server, SEO fields such as title and canonical reach the rendered head, preview deployments are protected from indexing, and structured data ships in the HTML rather than being added by script.

Will switching to server rendering get my site cited by AI engines?

Not by itself, and no one can promise a citation. Server rendering removes a technical barrier so engines receive your actual content. Whether they then quote you depends on whether your pages answer buyer questions well and what other sources say about you. Expect a lag while crawlers revisit and indexes refresh.

Nitesh Dan Charan

Nitesh Dan Charan

Founder, GrowingAI

Nitesh is the founder of GrowingAI, a generative engine optimization (GEO) agency that helps brands get named and cited in AI answers on ChatGPT, Google AI Overviews, Gemini and Perplexity. He writes from client work in the UAE, USA and UK. Every guide is dated, sourced and reviewed before it is published. See our research standards.

Want this done for your site?

Send your site and five buyer questions. We test them in the major AI engines and send back a short, honest read.

  • Recorded baseline in five AI engines
  • Competitors named
  • Three first fixes, ranked

No card, no contract. Nitesh replies himself, usually the same working day. By sending, you agree we may contact you about this request (privacy policy).