← ClickRadius Institute

JavaScript Rendering and AI Crawlers: What Breaks

Published October 22, 2026 · ClickRadius Institute

Open your site in a browser and you see a finished page. Fetch the same URL the way most AI crawlers do and you may see something very different: a header, a footer, an empty <div id="app">, and a list of script files. The gap between those two views is one of the most common reasons good content never gets cited. Google renders JavaScript, eventually. Most of the crawlers that feed AI answer engines, as far as anyone outside those companies can observe, do not render it at all. This guide explains the two crawling models, the specific page patterns that break, how to see your site the way a crawler does, and the rendering choices that make your content readable by every machine that asks for it.

Two crawling models, one web

There are two broad ways a crawler can process a page. The first is fetch-and-parse: request the URL, receive the HTML the server returns, and extract text, links and metadata from that HTML. The second is fetch-render-parse: request the URL, then load the page in a headless browser, execute its JavaScript, wait for the document to settle, and extract from the resulting DOM. The second model sees what a human sees. It is also far more expensive, because running a browser for every URL costs much more compute than parsing a text file.

Google uses the second model, with a delay. According to Google's JavaScript SEO basics documentation, Googlebot processes JavaScript pages in three phases: crawling, rendering and indexing. Pages are queued for rendering, and the rendering itself happens when resources allow, using an up-to-date version of Chromium. Google can therefore index client-rendered content, but the content waits in a queue, and anything that fails during rendering is simply missing from what gets indexed.

The crawlers built specifically for AI products appear to use the first model. OpenAI documents its crawlers and user agents on its bots page, and Anthropic and Perplexity publish their user agents too, but none of them document a JavaScript rendering step. Independent analyses of server logs have reported that these crawlers request HTML (and sometimes fetch script files) without executing the scripts. The safe working assumption, and the one we use throughout this Institute, is that GPTBot, ClaudeBot, PerplexityBot and similar AI crawlers generally read only the HTML your server sends. If a fact exists only after JavaScript runs, assume those crawlers never see it.

Rendering is a courtesy some crawlers extend and most do not. Content that depends on that courtesy is content you are hoping will be seen. Content in the initial HTML is content you know will be seen.— ClickRadius Institute analysis

Two further points keep this in proportion. First, AI answers do not come only from AI crawlers. Google's AI Overviews and AI Mode draw on Google's own index, which renders JavaScript, and Microsoft has said Bingbot renders as well. A client-rendered page is not invisible everywhere. Second, crawler behavior can change without notice. Vendors do not promise a rendering policy, so any statement about "what GPTBot does" describes observed behavior, not a guarantee. Build for the strictest reader and you never have to track the policy. For a profile of each crawler, see AI Crawlers Explained: GPTBot, ClaudeBot and More.

What breaks: the patterns that hide content

"JavaScript site" is too broad a diagnosis to be useful. Most modern sites use JavaScript, and many of them are perfectly readable without it. What matters is whether meaningful content and signals depend on script execution. These are the common patterns that hide content.

1. Client-side rendered applications

A single-page application built with React, Vue, Angular or similar frameworks can ship an almost empty HTML shell and build the whole page in the browser. To a fetch-and-parse crawler, every URL on the site looks the same: a title, maybe a meta description, and no body text. This is the most severe failure because it affects every page at once.

<!-- What a non-rendering crawler receives -->
<body>
  <div id="root"></div>
  <script src="/static/js/main.4f2a.js"></script>
</body>

2. Content fetched after load or on interaction

Even on server-rendered sites, important content is often loaded later: product specifications pulled from an API after the page loads, FAQ answers fetched when a user opens an accordion, reviews loaded by a third-party widget, "load more" buttons and infinite scroll. Crawlers do not click, scroll or tap. Content that arrives only after an interaction is, for practical purposes, not on the page. The distinction matters: an accordion whose answers are already in the HTML and merely collapsed with CSS is fine. An accordion that requests its answers from the server when clicked is not. We cover the same distinction for mobile templates in Mobile-First Indexing and AI Search Visibility.

3. Links that are not links

Crawlers discover pages by following <a href="..."> elements. Navigation built from <span onclick="..."> or buttons that call a router function gives a crawler nothing to follow. Google's documentation is explicit that it can only reliably follow links that are <a> tags with an href attribute. Hash-based routes such as /#/pricing cause a related problem, because the fragment after # is not sent to the server, so every route resolves to the same document.

4. Metadata and structured data written by scripts

Titles, canonical tags, meta robots directives and JSON-LD are frequently injected by a tag manager or framework at runtime. Google states in its structured data introduction that it can read JSON-LD that is dynamically injected, because it renders. A crawler that does not render will see none of it. Worse, if the initial HTML and the rendered DOM disagree, you are sending two different sets of signals. Google's JavaScript documentation warns about one sharp case: if the original HTML contains a noindex directive, Google may skip rendering entirely, so removing noindex with JavaScript does not work. The same logic applies to canonicals; a canonical written by script can contradict the one in the source, a problem we cover in Canonical Tags in the AI Era.

5. Text that is not text

Prices drawn on a canvas, key claims baked into images, comparison tables rendered as SVG graphics without text equivalents, and content inside iframes from another domain are all difficult or impossible for a text-extracting crawler to attribute to your page. If a sentence matters, it should exist as HTML text on your URL.

6. Walls and gates

Cookie consent overlays, age gates, region selectors and login prompts can replace the page body entirely when JavaScript decides the visitor has not yet agreed to something. A human clicks through. A crawler receives the gate. Make sure the underlying content is present in the HTML behind any overlay that is purely presentational.

How to see what a crawler sees

The browser you are reading this in is the worst tool for this job, because it renders everything. Use these checks instead, in order of effort.

  1. View source, not inspect. "View page source" shows the HTML the server returned. "Inspect element" shows the DOM after scripts ran. Search the source for a distinctive sentence from your main content. If it is not there, non-rendering crawlers do not have it.
  2. Disable JavaScript and reload. Every major browser lets you turn scripts off in developer tools. What remains is roughly what a fetch-and-parse crawler can read. Check body copy, navigation links, prices, FAQ answers and reviews.
  3. Fetch with a crawler user agent. From a terminal, request the page the way a bot would and look for your content:
    curl -s -A "Mozilla/5.0 (compatible; GPTBot/1.0; +https://openai.com/gptbot)" \
      https://example.com/guides/water-heaters | grep -c "tankless"
    A count of zero for a word that appears all over the rendered page is your answer. Some servers and CDNs treat bot user agents differently, which is itself worth knowing.
  4. Compare with Google's rendered view. The URL Inspection tool in Google Search Console shows the HTML Googlebot rendered. If Google's rendered HTML contains your content but the raw source does not, you are visible to Google and probably invisible to most AI crawlers.
  5. Check your server logs. Look for requests from AI crawler user agents and confirm they receive a 200 status and a full-size response, not a 403 from a bot-protection rule or a tiny shell.

The fixes, from most to least robust

The goal is simple to state: every piece of content and every signal you want cited should be present in the HTML response for the URL, before any script runs. There are several ways to get there.

Whichever approach you choose, apply three rules. Put JSON-LD in the server-rendered HTML rather than injecting it through a tag manager. Make every navigational link a real <a href> to a real URL. And keep content that answers questions, such as FAQ answers, specifications and pricing, in the initial document even when it is visually collapsed.

The question is never "does my site use JavaScript?" It is "does any sentence I want cited depend on JavaScript?" The first question has no useful answer. The second has a yes or no answer you can check in five minutes.— ClickRadius Institute analysis

Where this sits in your GEO priorities

Rendering is a gatekeeping issue, not a ranking lever. Fixing it does not make a page more citable than it deserves to be; it lets the page compete at all. That is why it belongs near the top of a technical audit, alongside crawler access in robots.txt and a clean sitemap, as covered in Sitemaps and AI Discovery. Heavy scripts also interact with speed and render budgets, which we cover in Page Speed and AI Citation.

Once the content is reliably in the HTML, the work shifts to what the content says. The GEO research by Aggarwal et al. (KDD 2024) found that methods such as adding citations to sources, quotations and statistics improved how visible a source was in generative-engine answers in their benchmark. Those improvements only help a page a crawler has actually read. If your structured data is part of what you need crawlers to see, validate the server-rendered version specifically, using the process in Structured Data Testing and Validation for AI, and keep it in the format discussed in JSON-LD vs Microdata.

Frequently asked questions

Does GPTBot execute JavaScript?

OpenAI does not document a JavaScript rendering step for GPTBot, and independent log analyses have reported that it and other AI crawlers fetch HTML without executing scripts. Treat it as a crawler that reads only the HTML your server returns. Crawler behavior can change without notice, so the robust approach is to put important content in the initial HTML, which works whether or not any crawler renders.

If Google renders JavaScript, why does this matter?

Because Google is only one of the systems that assemble AI answers. Google's AI Overviews and AI Mode draw on Google's index, which renders JavaScript after a queue delay. ChatGPT, Claude and Perplexity rely heavily on their own crawlers and fetchers, which generally do not render. A client-rendered page can therefore be visible in Google and invisible to several other answer engines at the same time.

Is structured data injected by Google Tag Manager good enough?

For Google, it can work, because Google renders the page and states that it can read dynamically injected JSON-LD. For crawlers that do not render, script-injected JSON-LD does not exist. If you want every crawler to see your structured data, output it in the server-rendered HTML instead of injecting it at runtime, and validate the raw source, not just the rendered page.

ClickRadius checks whether your core content and structured data are present in the HTML a crawler receives, without JavaScript, as part of its six-category AI-citation score, and flags pages where key content only appears after scripts run. Get your free AI Readiness Score, or see plans on the pricing page.