AI bots

Can AI crawlers read a JavaScript site?

Some crawlers document JavaScript rendering. Others make no promise. Check what the server returns.

On this page 7 sections

Do not assume every AI crawler can read content your page creates in the browser. Google documents JavaScript rendering for Search, and Apple documents it for Applebot. Other major crawler pages do not make the same promise. For important public text, check what the server sends. For access preferences see the robots.txt guide; for who made a request, crawler verification.

What the operators actually document

The table below distinguishes an explicit rendering statement from missing documentation. "Not specified" is a limit of the cited source, not a claim that the crawler cannot execute scripts. Checked on 9 November 2026.

Crawler or documented service What the operator says about JavaScript Safe planning assumption
Google Search's Googlebot Search runs JavaScript using evergreen Chromium Test the rendered result as well as the response
Applebot Apple says it may render content in a browser; blocked resources can prevent correct rendering Check that required resources are accessible
GPTBot, OAI-SearchBot and ChatGPT-User The OpenAI crawler reference does not specify rendering support Do not make essential text depend on assumed rendering
ClaudeBot, Claude-SearchBot and Claude-User Anthropic's crawler guidance does not specify rendering support Check the initial response and avoid inventing a capability claim
PerplexityBot and Perplexity-User Perplexity's crawler reference does not specify rendering support Treat rendering as unconfirmed by that reference

OpenAI's crawler reference, Anthropic's crawler guidance and Perplexity's crawler documentation describe their respective bots and access preferences. A company offering a browser-based agent does not establish that its background crawler uses the same retrieval path.

Why the initial HTML is a useful baseline

Compare two artefacts: the response body returned for a URL and the page after a browser has executed its scripts. Do not infer the first from a screenshot of the second.

Google's JavaScript guidance recommends server-side rendering or pre-rendering because it helps users and crawlers, and notes that not all bots run JavaScript. That is a sensible baseline for public documentation and marketing pages even when your application still uses scripts for interaction.

The acceptance criterion is content, not a framework: the product description, headings, explanatory paragraphs and useful links should be in the returned document, whether server-rendered or static. Keep this to public pages. An account dashboard needs a sound signed-in experience, not crawler-readable HTML.

Swipe sideways to see the whole diagram.

Check the response text, then compare it with the rendered page.
The diagram as a list
  1. Select a public URL and text that should be available.
  2. Save the HTTP response and inspect the browser-rendered page separately.
  3. Compare the main text before choosing a rendering or access fix.

Test the response with curl

Use this on a public page you own. It retrieves a response for inspection and does not emulate a crawler's environment. The curl manual documents the options, and the curl FAQ says curl has no JavaScript support, so it shows the response as sent.

  1. Choose a representative URL, such as a public guide. Write down two or three exact sentences that should appear in its main content.
  2. Retrieve the response headers and body into a local scratch directory in your project.
  3. Inspect the status, content type and body. Search for your chosen sentences, then check where they occur.
  4. Open the same URL in a browser and compare the visible main text with the saved response.
  5. Repeat for a second page type before deciding whether the issue belongs to one template or the whole site.
mkdir -p .tmp/crawler-check
curl --silent --show-error --location \
  --dump-header .tmp/crawler-check/headers.txt \
  --output .tmp/crawler-check/page.html \
  'https://example.com/docs/setup'

Replace the example URL with your own public URL. --location follows redirects; --dump-header saves response headers; --output saves the response body. Avoid using curl -I for this task because you need the body, not only headers.

A sentence inside a script's data payload is not the same result as a paragraph in the page markup, so look for the main text in the body with its headings and links. Put the conclusion in your issue: tested URL, deployment revision, expected sentence, returned status and whether the sentence is present as page content.

Compare failures before choosing a fix

These are diagnostic suggestions, not claims about every crawler's behaviour.

What you observe Next question to investigate Useful acceptance criterion
The body is mostly an application shell Where is the main text generated? Public text exists in the response markup
The response is a challenge or error page Which edge rule produced it? The intended public response reaches the tested client
Text exists only after interaction Is that text essential to this public page? Essential information has a directly retrievable home
Only one template fails What differs in that template? Representative URLs pass the same content check
A local fetch works but reported access fails Are the request paths comparable? Test results include the actual host and deployment

A request with a different user agent tests your server's response to a header value. It does not reproduce the real crawler's IP identity, rendering engine or request history, so use verified request records for conclusions about actual bot traffic. Apple's guidance says blocking JavaScript or CSS can prevent correct Applebot rendering; for Search, use Google's rendering tools. Keep those checks distinct from the plain response test.

Keep readability separate from visibility

A readable response is a prerequisite, not a promise of citation or referral: the test shows only that the server returned the intended public content for the tested request. Measure downstream outcomes independently. A curated llms.txt file is not a replacement for checking the linked pages themselves.

How Lundot handles this

The crawler check tests whether the home page has text without JavaScript. Verified requests land in the AI bots report once Cloudflare is connected.

Sources

Put it into practice

  • Free toolCheck your site

    Which AI crawlers your robots.txt lets in, and whether your home page has text without JavaScript. Free, no account.

  • DocsInstall the tracking script

    Add one script tag to your site's head, with notes for HTML, Next.js, WordPress, Shopify, Webflow and tag managers, then check it works.

  • DocsAI bots

    Verified AI crawler, assistant and agent requests, per page and company.

See what your robots.txt tells AI crawlers

The AI crawler check is free and needs no account. It reads your robots.txt for each AI crawler, checks whether your home page has text without JavaScript, and looks for llms.txt.