JavaScript SEO: what Google renders and AI crawlers never see
Google runs your scripts before it indexes a page; the crawlers behind ChatGPT, Claude and Perplexity read only the HTML your server sends. How to check what each one gets, and the rendering choices that serve both.

Leon Missoul5 min read · Published 25 Nov 2026
In short
- Google renders JavaScript in a headless Chrome, later than it crawls, so content a script adds usually reaches Google in the end.
- AI crawlers read the HTML as served. Text, links, structured data and forms that only appear after scripts run are missing for ChatGPT, Claude and Perplexity.
- Server-side rendering or static generation gives everyone the whole page. Google calls it a great idea, because not every bot can run JavaScript.
How Google handles JavaScript
Google processes a JavaScript page in three phases: crawling, rendering and indexing. Googlebot fetches the HTML and queues the page; when Google’s resources allow, a headless Chromium runs the scripts, and Google indexes what it rendered. The wait can be seconds or longer, and Google may skip rendering for a page that answers with an error or carries a noindex.
Two things follow from that:
- Content that needs a script arrives later, after the second pass.
- What the HTML says counts first. If the server’s HTML says noindex, Google may never run the script that would have removed it. Google recommends setting the canonical in the HTML, and keeping it the same if a script touches it.
What AI crawlers do with JavaScript
The crawlers behind ChatGPT, Claude and Perplexity read the HTML your server sends and run no scripts. When Vercel and MERJ studied crawler traffic across Vercel’s network, none of the major AI crawlers rendered JavaScript, OpenAI’s, Anthropic’s and Perplexity’s included: ChatGPT’s and Claude’s crawlers fetched JavaScript files and never ran them. Common Crawl says the same of its own crawler: JavaScript is not executed.
The exceptions are the crawlers built on a browser: Googlebot, which Gemini relies on too, Bing’s crawler and Applebot. Google’s own JavaScript guide puts it plainly: server-side or pre-rendering “is still a great idea because it makes your website faster for users and crawlers, and not all bots can run JavaScript.”
For AI search, then, the HTML as served is the page.
Four ways a page can be built
| Approach | What the server sends | AI crawlers | |
|---|---|---|---|
| Static generation | The whole page, built ahead of time | Reads it at once | Read it |
| Server-side rendering | The whole page, built for each request | Reads it at once | Read it |
| Hybrid | The page, which scripts then make interactive | Reads it at once | Read it, minus anything loaded afterwards |
| Client-side rendering | An empty shell and a script | Reads it after rendering | See an empty page |
Most modern frameworks, such as Next.js, Nuxt, SvelteKit and Astro, render on the server or ahead of time by default. Single-page apps built with React, Vue or Angular alone render in the browser.
What goes missing, even on server-rendered sites
A site can render on the server and still hide parts of its pages from AI crawlers:
- Text loaded after the page: reviews, prices, FAQs or product details fetched by a script.
- Tabs and accordions filled on click. If the text isn’t in the HTML until someone opens the panel, crawlers never see it. A
<details>element shows and hides text without a script. - Links added by scripts: a menu of buttons, a carousel or a “load more” list with no
<a href>in the HTML. Google only follows links written as<a>elements with an href, and a crawler that runs no scripts can’t follow them at all. - Structured data added by a tag manager. Google sees it after rendering; AI crawlers never do.
- Forms embedded with a script, so an assistant can’t tell a visitor the page has one.
- Email addresses hidden by Cloudflare’s email protection, which crawlers read as “[email protected]”.
- Canonical, title or robots tags that a script changes, which gives Google two versions of the page.
How to check what a crawler sees
Three checks, from quickest to most thorough:
- View the page source, not the inspector: that’s the HTML as served. Search it for a sentence from the middle of the page.
- Turn JavaScript off in the browser’s developer tools and reload. What’s left is roughly what an AI crawler reads.
- Use URL Inspection in Search Console and look at the crawled page’s HTML to see what Google rendered.
Do it for one page of each kind (home, service, article, product, category), since each template renders its own way.
JavaScript SEO fixes that work
- Render the main content on the server, or generate it at build time.
- Use real links (
<a href="/pricing">) and the History API for routing, never#fragments. - Return real status codes. A single-page app that answers every address produces soft 404s; Google suggests redirecting to an address that returns a 404, or adding a noindex tag with JavaScript.
- Put structured data in the HTML, through the CMS template or an SEO plugin, not a tag manager.
- Keep the canonical, title and robots tags in the server’s HTML, and never let a script change them.
- Lazy-load only what’s below the fold. Images and text that show first belong in the first HTML.
Serving bots a separate pre-rendered copy, called dynamic rendering, still works, but Google calls it a workaround rather than a recommended solution. Rendering the real page on the server serves people and crawlers alike.
Next.js, React and single-page apps
- React on its own renders in the browser. A single-page app built with Vite or Create React App sends an empty
<div id="root">. Add a framework that renders on the server, or pre-render the pages that should be found. - Next.js renders on the server by default. The usual leak is content fetched in a client component after the page loads; fetch it on the server instead.
- Site builders serve their own content as HTML; embeds from other services, such as reviews, booking widgets and forms, are usually scripts.
How Orbit checks rendering
Health’s AI readiness loads one page of each kind in a browser and also reads it as served, then says how each kind of page is built (served whole, partly after JavaScript, or drawn in the browser) and what appears only once scripts run. When a sampled page is empty without scripts, the other pages of that kind that serve as little are flagged too, and when most kinds of page are empty to an AI crawler, AI readiness can’t score above 20. Our own site is built with Next.js: on 18 November 2026, all nine kinds of page Health read were served whole. Health starts on Ascend.
Next, see which AI crawlers to let in, and how scripts affect Core Web Vitals.
Written by

Leon Missoul, Founder
I started the web agency Luniq in 2025 and built Orbit from the software we used to keep our clients’ sites growing after launch. I write about search, AI answers and how to prove what website work earns.


