Guides How AI and search find you Explainer 6 min read
Can AI crawlers read pages that need JavaScript?
Mostly not. Google and Bing render pages with a browser engine and Apple says Applebot may, but in the one large public measurement none of the other major AI crawlers ran scripts, and OpenAI, Anthropic and Perplexity document no rendering. A page whose words, prices or opening hours appear only after its scripts run can look almost empty to them.
Published 3 December 2026 · Updated 4 December 2026
Two versions of every page
When a browser asks for a page, the server sends HTML. On many sites that HTML already holds the text. On sites built as single-page applications, it can hold little more than a title, an empty container and a script, which then fetches the content and writes it into the page. A person never notices the difference. A crawler that reads the HTML and does not run the script sees only the first version.
hollincycles.example/bikes/ridgeline-2/
| Fact | After scripts | Before scripts |
|---|---|---|
| Name of the bike | Ridgeline 2 gravel bike | In the title only |
| Price | £1,450 | Not in the HTML |
| Stock | In stock, collect in York | Not in the HTML |
| Description | Frame, gears, tyre clearance | Not in the HTML |
| Delivery and returns | Answered on the page | Not in the HTML |
| Shop address and hours | In the footer | Not in the HTML |
Running a page’s scripts to build what a person sees is called rendering. Google describes three phases for its crawler: it fetches the page, queues it for rendering in an up-to-date version of Chromium, then indexes what the rendered page shows. It adds that Google can only see content present in the rendered HTML, and that not all bots can run JavaScript, which is why it still calls server-side rendering or pre-rendering a good idea.
What each crawler is known to do
| Crawler | Runs JavaScript? | Basis |
|---|---|---|
| Googlebot, also behind Gemini and Google’s AI features | Yes | Google’s documentation |
| Bingbot | Yes, with Microsoft Edge’s engine | Bing, 2019 |
| Applebot | May render in a browser | Apple’s documentation |
| GPTBot, OAI-SearchBot, ChatGPT-User | No: fetched script files, never ran them | Vercel and MERJ measurement, 2024 |
| ClaudeBot | No: fetched script files, never ran them | Vercel and MERJ measurement, 2024 |
| PerplexityBot, Meta-ExternalAgent, CCBot | No | Vercel and MERJ measurement, 2024 |
| Claude-SearchBot, Claude-User, Perplexity-User, Meta-WebIndexer | Unknown | Neither documented nor measured |
The measurement behind most of the table was published by Vercel with the consultancy MERJ in December 2024. It drew on several months of traffic to nextjs.org and Vercel’s hosting network, checked against two UK job boards. In its latest month, GPTBot made 569 million fetches and Claude’s crawler 370 million, against Googlebot’s 4.5 billion. Script files were 12% of ChatGPT’s fetches and 24% of Claude’s, so the crawlers downloaded them; none ran them. Microsoft Copilot was left out because it sends no user agent of its own. Vercel sells web hosting, which is worth knowing when it recommends how pages should be built; the measurement is still the largest public one.
Two years on, nothing official has replaced it. The crawler pages of OpenAI, Anthropic and Perplexity, read on 3 December 2026, explain what each crawler is for and how to block it, and say nothing about scripts. searchVIU’s compendium of 39 bots and tokens, last updated on 3 November 2026, finds the same gap: for most AI crawlers the only evidence is Vercel’s, and newer ones such as Claude-SearchBot, Perplexity-User and Meta-WebIndexer have been neither documented nor measured. Its one test of its own, in October 2025, found Perplexity answering with a price that only a script had inserted; the authors say one page proves nothing.
Google sits at the other end. Its guide to AI features says Google can process content in JavaScript as long as it is not blocked, while warning that sites heavy in JavaScript need more work. Apple says Applebot may render pages in a browser, and that if robots.txt blocks script and style files it may not render them properly.
Our reading of the evidence: content that needs scripts to appear should be treated as invisible to AI crawlers other than Google’s, Microsoft’s and Apple’s, until a company says otherwise.
Which content is at risk
Whole pages are at risk on sites that build everything in the browser, a common pattern for single-page applications that were never given server-side rendering. More often only part of a page is missing:
- Prices, stock and rates loaded after the page arrives, such as a hotel’s room rates pulled from its booking engine or a shop’s price from a product feed.
- Opening hours, menus and reviews shown by widgets. A widget that loads in a frame from another company’s address holds its text there, not on your page.
- Answers that load only when someone opens a tab or an accordion, which are not in the HTML at all. Even when hidden text is in the HTML, Microsoft’s Bing team advises against putting important answers there, because AI systems may not render hidden content.
- Structured data added by a script. searchVIU recommends putting it in the delivered HTML for the same reason; llms.txt and structured data covers what structured data does and does not do.
- Text that exists only in images or PDFs, which Microsoft also advises against for important information.
How to test a page
- View the source. Open the page, choose View Page Source (or type
view-source:before the address) and search for a sentence of the main text, the price and the phone number. The source is the HTML before scripts run; the Elements panel of the developer tools shows the page after. - Turn scripts off. In Chrome’s developer tools, open the Command Menu (Ctrl+Shift+P, or Cmd+Shift+P on a Mac), choose Disable JavaScript and reload. Scripts stay off only while the developer tools are open.
- Fetch without a browser.
curl -sL https://hollincycles.example/bikes/ridgeline-2/ | grep -c "1,450"prints 0 when the price is not in the HTML. Adding a crawler’s user agent with-Ashows whether the server or CDN answers that name differently. A CDN that checks addresses will treat your test as an impostor, so a refusal here proves less than a refusal in your logs. - Compare with Google. In Search Console’s URL Inspection tool, run a live test and open View tested page to see the HTML Google’s renderer produced, with a screenshot. That rendered version is the one most AI crawlers never get.
A worked example: the rates a booking widget hides
Take Ostrowa Lane Hostel, a hostel in Kraków at ostrowalane.example. Its rooms page looks complete in a browser: five room types from dormitory beds to doubles, rates from 95 zł a night, and a question list that answers “Can I leave my luggage after check-out?”.
The page source holds less. The room names are there as headings, because the site’s template writes them. The rates are missing, because a booking widget fetches them after the page loads. The luggage answer is missing too, because the question list loads its answers only when a guest opens one.
The fix leaves the booking widget alone and adds two things to the HTML the server sends: a line per room with its starting rate, kept up to date, and the luggage answer written out under its question. Live availability stays in the widget, where it has to be.
What to change
- Send the main content in the first HTML response. Server-side rendering, static generation and pre-rendering all do this; filters, baskets and booking calendars can stay in scripts. Ask whoever built the site before rebuilding anything: on some platforms the change is a setting.
- Put the facts people ask about into that HTML as text: the price or starting price, opening hours, address, phone number, the area you serve, the menu.
- Deliver structured data in the HTML rather than adding it with a script.
- Leave script and style files open to crawlers in robots.txt, so that Google and Apple can render the page.
- Keep redirects for moved pages and your sitemap current, as Vercel advises. In its data, about 35% of ChatGPT’s and Claude’s fetches got a 404, against 8% for Googlebot, many of them for robots.txt and for outdated script and style files.
- After the change, repeat the test: the text should be in the page source.
Rendering is one of the parts of the path from a question to an answer that a site can check for itself; how AI assistants find and read websites places it among the others, including whether those crawlers may fetch the page at all.
The same check is part of aspect12’s site audit, which reads pages as most AI crawlers do, from the HTML without running scripts, and reports a page meant to be found that holds almost no text before its scripts run, with the fix to send your developer and the curl check to confirm it. It marks the finding as experimental, because no AI company says what its crawler does with scripts.
Sources
- The rise of the AI crawler · Vercel , 17 December 2024. With MERJ; measured on Vercel's own network, and Vercel sells web hosting. Read 3 December 2026.
- Understand JavaScript SEO basics · Google Search Central . Read 3 December 2026.
- Optimizing your website for generative AI features on Google Search · Google Search Central , 15 May 2026, updated 2 December 2026. Read 3 December 2026.
- The new evergreen Bingbot simplifying SEO by leveraging Microsoft Edge · Microsoft Bing Webmaster Blog , 9 October 2019. Read 3 December 2026.
- About Applebot · Apple Support , 4 September 2026. Read 3 December 2026.
- Which AI crawlers render JavaScript? · searchVIU , updated 3 November 2026. By Michael Weber; a compilation of operators' documentation and Vercel's data, with one test of its own. Read 3 December 2026.
- Optimizing your content for inclusion in AI search answers · Microsoft Advertising Blog , 8 October 2025. By Krishna Madhavan of Microsoft Bing. Read 3 December 2026.
- Overview of OpenAI crawlers · OpenAI . Read 3 December 2026.
- Does Anthropic crawl data from the web, and how can site owners block the crawler? · Anthropic Help Center . Read 3 December 2026.
- Perplexity crawlers · Perplexity . Read 3 December 2026.
- Disable JavaScript · Chrome for Developers . Read 3 December 2026.
- URL Inspection tool · Google Search Console Help . Read 3 December 2026.