WebmasterID logoWebmasterID
AI crawlers

AI crawlers and JavaScript rendering

Many AI crawlers fetch raw HTML and do not execute JavaScript, so content injected client-side may be invisible to them. Rendering behaviour varies by operator and is often undocumented, so the safe assumption is that important content should be present in the server-rendered HTML. Server-side rendering or pre-rendering keeps content reachable regardless of a crawler's JS support.

Partially verified

Raw HTML versus rendered DOM

When a crawler fetches a page it receives the server's HTML response. A browser then runs JavaScript to build the final DOM, but a crawler only sees that final state if it also executes JavaScript. Many crawlers — especially AI and dataset crawlers — fetch the raw HTML and stop there.

If your content is rendered entirely client-side, those crawlers receive a shell: a bit of markup and a script bundle, with the actual text never materialising for them.

Rendering support is uneven and undocumented

Search engines like Google document a two-pass model that can render JavaScript, but AI and dataset crawlers vary widely and most do not publish their rendering behaviour. Because the behaviour is uneven and often unstated, you cannot assume a given AI crawler runs your JavaScript.

The safe posture is to treat AI crawlers as HTML-first. This entry marks rendering specifics partially verified precisely because operator-by-operator documentation is sparse — describe the pattern, do not assume capabilities a crawler has not stated.

Keeping content reachable

Put important content in the server-rendered HTML: use server-side rendering, static generation, or pre-rendering so the text, headings, and links are present in the initial response. Progressive enhancement — content first, JavaScript for interactivity — keeps pages readable to crawlers that do not render.

Where full SSR is impractical, pre-render critical routes. The goal is that a crawler reading only raw HTML still sees the substance of the page, not an empty shell.

How it appears in analytics and logs

If an AI token fetches a page whose meaningful content only appears after JavaScript runs, it likely ingested an near-empty shell. Crawls that land on JS-heavy routes but yield thin coverage are a sign rendering is the bottleneck.

Diagnostic use case

Make sure AI crawlers can read your key content by ensuring it is in the initial HTML rather than depending on client-side JavaScript that many crawlers do not run.

What WebmasterID can help detect

WebmasterID records which AI tokens fetched which URLs, so you can correlate JS-dependent routes with weak crawl coverage on the AI-visibility surface and prioritise server rendering where it matters.

Common mistakes

Privacy and accuracy notes

Rendering concerns how content is delivered to crawlers, not visitor identity. Analysis uses crawler tokens and response content, never human data.

Frequently asked questions

Do AI crawlers run my JavaScript?
Often not. Many AI and dataset crawlers fetch raw HTML without executing JavaScript, and rendering behaviour is rarely documented per operator. To be safe, ensure key content is in the server-rendered HTML rather than injected client-side.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.