Skip to content

JavaScript SEO in 2026 means serving content every crawler can read without rendering. How Google queues JavaScript, why AI crawlers skip it, and the practical fixes that make pages visible and citable.

JavaScript SEO is the practice of making JavaScript-built pages discoverable, renderable and indexable by search engines. In 2026 it has a second audience: AI crawlers behind ChatGPT, Claude and Perplexity, most of which do not run JavaScript. A page complete in your browser can be an empty shell to systems deciding whether to cite it.

The common reassurance — “Google renders JavaScript” — is true and no longer sufficient. This guide explains how Google actually processes JavaScript, what the current evidence says about AI crawlers, and how to build pages every crawler can read. It was fact-checked against Google Search Central documentation, the Vercel and MERJ crawler study and Search Engine Land’s August 2026 link experiment on 6 December 2026.

What JavaScript SEO is — and what changed

Every JavaScript page exists in two versions. The raw HTML is what your server sends in its first response. The rendered HTML is what exists after a browser downloads and executes your scripts. When the two match closely, JavaScript SEO is a non-issue. When your headings, body copy, links or structured data only appear in the rendered version, visibility depends entirely on whether each crawler bothers to render.

For a decade that bet was mostly safe, because Google built an evergreen Chromium renderer. AI search broke the assumption: on every public measurement so far, AI crawlers read the raw HTML and move on. JavaScript SEO is now about not depending on rendering at all.

How Google actually processes JavaScript

Google’s documentation is blunt: it processes JavaScript apps in three phases — crawling, rendering, indexing. Googlebot checks robots.txt, fetches the URL and parses raw HTML for links. Pages returning 200 are queued for rendering unless a robots tag says otherwise. Only after headless Chromium renders the page does Google index the rendered HTML and extract links again.

Two details matter. The render queue has no published timetable: Google says a page may wait a few seconds, but it can take longer. And Google itself warns against relying on rendering, noting server-side or pre-rendering is still a great idea because not all bots can run JavaScript. That sentence is now the whole AI-search argument in miniature — check what the crawler receives, as in our technical SEO audit checklist, not what the browser shows.

What AI crawlers do instead

None of OpenAI, Anthropic or Perplexity documents whether its crawlers execute JavaScript, so evidence is observational — but consistent. In December 2024, Vercel and MERJ analysed traffic across Vercel’s network and two job-board sites. None of the major AI crawlers rendered JavaScript, including GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot and PerplexityBot. ChatGPT fetched JavaScript files in 11.50% of requests and Claude in 23.84%, but neither executed them. A log full of .js fetches is not evidence of rendering.

A controlled experiment published by Search Engine Land on 19 August 2026 tested discovery. Over 41 days on a roughly 2,400-page directory, 11 sections used ordinary HTML anchors and 10 only JavaScript-injected links, with sitemaps and breadcrumbs removed. GPTBot and ClaudeBot each crawled all 748 HTML-linked hierarchy pages and exactly zero of the 293 JavaScript-linked ones. Googlebot reached only 2% of the JavaScript-linked pages in 27 days — likely a crawl-budget artefact of a new, unlinked domain, not a benchmark. The AI-crawler zeros are the finding: if the link is not in the HTML, the page does not exist for them, so internal linking structure must work without scripts.

Step 1: Audit the raw HTML, not the browser

Compare both versions of your key templates. Fetch a URL without executing JavaScript — view-source or a plain HTTP request — and check title, meta description, heading, body copy, internal links, canonical and structured data against the rendered HTML in Google’s URL Inspection Tool.

Anything present only in the rendered version is invisible to non-rendering crawlers and delayed for Google. Prioritise by template, not page. Note the waste Vercel and MERJ measured on nextjs.org: ChatGPT spent 34.82% of fetches on 404 pages and Claude 34.16%, against 8.22% for Googlebot. Clean status codes are rendering hygiene, not housekeeping.

Step 2: Choose a rendering strategy that serves everyone

The durable fix is putting important content in the initial HTML for every visitor. Google recommends server-side rendering, static rendering or hydration, and calls dynamic rendering — pre-rendered HTML only for detected bots — a workaround, not a long-term solution.

StrategyInitial HTMLCrawler risk
Static renderingFull page, built aheadLowest; nothing to execute
Server-side renderingFull page, built per requestLow; hydration adds interactivity
Client-side renderingApp shell plus scriptsHigh; invisible to AI crawlers
Dynamic renderingFull page for bots onlyMedium; two versions can drift

Client-side rendering still suits interactive, non-indexable screens such as dashboards and checkouts. The mistake is using it for public pages you want found and cited. If migration is unrealistic this quarter, server-render articles, product, category and documentation templates first.

Google only discovers anchor elements with an href, and AI crawlers only discover them in raw HTML. Navigation, breadcrumbs, pagination and in-content links must be real anchors in the server response. Click handlers on divs, fragment URLs such as #/products and injected menus fail. Single-page apps should use the History API so each view has a real URL.

Head elements follow the same rule. JavaScript can change the title and meta description for Google after rendering, but non-rendering crawlers see the generic app title your server sent. Set unique titles server-side. For canonicals, Google says HTML is best and JavaScript must never point elsewhere than the original HTML.

Step 4: Handle errors, robots rules and structured data honestly

Single-page apps often return 200 for missing pages, creating indexable soft 404s. Google’s fixes: redirect to a URL returning a real 404, or add noindex to the error view. Prefer the real status code — every crawler understands it.

Robots.txt interacts with rendering too: Google will not render JavaScript from blocked files, so blocking script or CSS directories can break the page it indexes. Serve JSON-LD in the initial HTML if AI systems should use it. Then control access itself — see our guide to llms.txt and robots.txt for AI crawlers.

Step 5: Keep the rendered page fast and cache-safe

Heavy bundles delay rendered HTML and hurt Core Web Vitals. Google caches aggressively and its renderer may ignore caching headers, so use content fingerprinting — hashed filenames such as main.2bb85551.js — to avoid stale resources. Content loaded only on scroll or click may never enter the rendered HTML; load primary content and images by default. None of this guarantees rankings or citations. It removes a technical reason for good pages to be absent.

How to measure whether it worked

Measure in three places: the raw-versus-rendered comparison, where title, copy, links, canonical and structured data should now appear before scripts run; Search Console URL Inspection and coverage; and server logs split by user agent, checking GPTBot, ClaudeBot and PerplexityBot reach deep pages.

Expect uneven recovery. When the experiment converted JavaScript links to HTML on day 27, GPTBot picked up 250 unreachable pages in under three hours; ClaudeBot still had not by day 41. Logs prove discovery, not indexing or citation. Check weekly for a month, then monthly.

Common mistakes in JavaScript SEO

  • Trusting the browser view. What you see after scripts run is not what most crawlers receive.
  • Reading .js fetches as rendering. ChatGPT and Claude download scripts they never execute.
  • JavaScript-only navigation. Injected links produced zero AI-crawler discovery in controlled testing.
  • Generic shell metadata. One app title and no canonical in raw HTML, fixed only after rendering.
  • Blocking scripts in robots.txt. Google then renders a broken page, or does not render at all.
  • Dynamic rendering as the end state. Google calls it a workaround; two versions eventually drift apart.

All six share one pattern: optimising for the crawler that renders and assuming the rest behave alike. Verify behaviour in your own logs; vendor documentation on rendering does not exist.

Frequently asked questions

Does Google render JavaScript?

Yes. Google runs JavaScript with an evergreen version of Chromium and indexes the rendered HTML. The catch is the queue: rendering happens after crawling, with no published timetable, so script-dependent content and links are discovered later than HTML equivalents.

Do ChatGPT, Claude and Perplexity render JavaScript?

On current evidence, no. Vercel and MERJ found no JavaScript execution by GPTBot, ClaudeBot or PerplexityBot in December 2024, and an August 2026 experiment found zero discovery of JavaScript-linked pages. None of the vendors documents rendering behaviour.

Is client-side rendering bad for SEO?

Not inherently. It works for interactive, non-indexable screens and Google can usually process it. It becomes a problem when public pages you want ranked or cited depend on scripts for their content, links, titles or canonicals.

Should I use dynamic rendering for AI crawlers?

Only as a bridge. Google describes dynamic rendering as a workaround, not a long-term solution, and recommends server-side rendering, static rendering or hydration instead. Serving everyone the same complete HTML is simpler and cannot drift.

How can I test what AI crawlers see?

Fetch your key URLs without executing JavaScript and inspect the raw HTML for copy, links, title and canonical. Then check server logs by user agent to confirm GPTBot, ClaudeBot and PerplexityBot actually reach deep pages.

Final verdict

JavaScript is not the enemy; dependence on rendering is. Google will usually get there eventually, through a queue it does not timetable. The AI crawlers now shaping discovery, on the best available evidence, will not get there at all. Serving complete HTML to everyone is the one approach that satisfies both, and it is what Google’s own documentation recommends.

Start today with one template: fetch its raw HTML, list what is missing, and server-render that template first. That single check tells you whether you have a JavaScript SEO problem or merely a JavaScript website.

Sources

Keep exploring

Browse all insights

Tell us what your business needs

Your project deserves
a practical plan.

Whether you need a website, a search strategy, campaign assets or an automated workflow, TechnSEO can help you define the work.