Do AI crawlers run JavaScript? Test your React/Next.js site
By Mohamed Hadri

Mostly no. When people ask “do AI crawlers run JavaScript?”, they usually mean ChatGPT, Perplexity and Claude. In every public test we found, none of the three ran your page’s scripts. Glenn Gabe’s case study, updated on 19 October 2026, says ChatGPT and Claude still cannot render JavaScript-based content. Google is different: AI Overviews and AI Mode use pages from Google’s index, and Google runs your JavaScript before it indexes a page. So prices, reviews or service text that appear only after a script runs may never reach ChatGPT. You can check in two minutes.
The checks, in order:
- Open your page, press Ctrl+U and search for your main service, a price and your phone number.
- Right-click the same text and choose Inspect. If it shows there but not in Ctrl+U, a script added it.
- Don’t trust Search Console alone. It shows the page after Google ran your scripts.
- If text is missing, ask your developer to put it in the HTML the server sends.
- Repeat on a product, service or blog page, which can be built differently.
Do AI crawlers run JavaScript? The answer by tool
ChatGPT, Claude and Perplexity didn’t in any public test we found. For Gemini and Copilot, the tests disagree:
| AI tool | Runs your scripts? | What the tests found |
|---|---|---|
| ChatGPT | No | Vercel/MERJ logs, Dec 2024; Gabe, Aug 2025 and Oct 2026; Alpar, June 2026 |
| Claude | No | Same three tests |
| Perplexity | No | Vercel/MERJ and Alpar; in Gabe’s 2025 test Perplexity saw no content |
| Google AI Overviews and AI Mode | Yes, through Google’s index | They need an indexed page, and Google renders pages with Chromium first |
| Gemini app | Tests disagree | Rendered in Vercel/MERJ and in searchVIU’s Oct 2025 test; read only the raw HTML in Alpar’s |
| Copilot | Tests disagree | Gabe found it unaffected; Alpar saw it fetch the script but not run it |
Google’s renderer works through a queue, so a page may wait a few seconds, or longer. No AI company page we read says whether its bot runs JavaScript; OpenAI’s crawler page doesn’t mention it. Some assistants did run scripts in Alpar’s test (DeepSeek, Qwen and Mistral among them), so “AI never runs JavaScript” is wrong too. Nobody outside these companies knows when this will change; go by the test dates.
How do I test my own page without being a developer?
Compare what your server sends with what your browser shows. In Chrome:
- Open the page and press Ctrl+U (⌘+Option+U on a Mac). That tab is the page’s raw HTML. Press Ctrl+F and search for your main service, a price, your phone number and a sentence from the middle of the page.
- Right-click that text on the page and choose Inspect. The Elements panel shows the page as it is now. Chrome’s docs note that once JavaScript changes the page, this view no longer matches the HTML. Text you find here but not in step 1 came from a script, so ChatGPT, Perplexity and Claude may not see it.
If you’d rather skip View Source, our free scan does the home-page version for you. It measures how much readable text your home page’s HTML holds without scripts, and compares what requests named after Google’s, OpenAI’s, Perplexity’s and Anthropic’s search crawlers receive with what a browser gets. Without an account you see each check’s status right away; the check names and details open when you add the site to a free account. It reads the home page only.
Two optional tests:
- Ask ChatGPT, Perplexity or Claude for the first and last paragraph of one exact URL, the test Gabe used. A correct answer can come from a search result or an old copy; a refusal or a wrong answer is the warning sign. Gabe also saw ChatGPT and Perplexity show a generic icon instead of the site’s favicon.
- In a terminal, save the page with the OAI-SearchBot user agent from OpenAI’s crawler page, using your address instead of example.com:
Search oai.html for the same text. In Windows PowerShell, typecurl -s -o oai.html -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36; compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot" https://www.example.com/curl.exeinstead ofcurl. More in check 3 of our earlier post.
Google says my page is fine. Why might ChatGPT see nothing?
Because Google’s tools show your page after its scripts ran. Google tells you to check its view in the Rich Results Test or the URL Inspection tool and look at the rendered HTML. That tells you Google can read the page, and nothing about a bot that reads only the raw HTML. As one agency guide puts it, URL Inspection only checks Google’s rendering pipeline.
Which parts usually go missing?
Anything a script adds after the page opens. Check these first:
- The whole page. A site built entirely in the browser sends an almost empty shell. In Gabe’s case study, ChatGPT and Claude said they could not read the site’s pages, and Perplexity found no content.
- Prices, stock and variants. In searchVIU’s test, the AI tools mostly named prices visible in the HTML. Only Gemini found a price a script added during a live fetch.
- Schema added by a script, for example through Google Tag Manager. Google can read it after rendering, but in searchVIU’s test no tool named a price that sat only in JSON-LD. More in does schema markup help AI search?
- Tabs and accordions that load on click. Googlebot can’t click open an accordion, so put that text in the page when it first loads.
- Review widgets and store sections that fill in after load. Search View Source for a review sentence and a product name.
How do I fix it on Next.js, React, WordPress or a store platform?
Your server has to send the important text in its HTML. Google recommends server-side rendering, static rendering or hydration, and says dynamic rendering (serving bots a separate pre-rendered copy) was only ever a stopgap.
- Next.js. In the App Router, pages and layouts are Server Components by default, and Client Components are prerendered to HTML too, so a Next.js page can pass the test untouched. The risk is text a component fetches in the browser after the page opens. Test, then move that fetch to the server.
- A React app built only in the browser (a single-page app). Pre-render the key pages at build time, or move them to server rendering.
- WordPress. Run the same test on pages made with a page builder, and on plugin sections such as reviews or sliders.
- Shopify, Salla or Zid. The theme decides what goes into the HTML. Shopify themes, for example, use Liquid to generate it. Test a product page; if the text is missing, ask the theme developer or platform support. See what Salla and Zid control.
A message you can send your developer or freelancer:
- Open [page] with Ctrl+U: our services, prices and phone number aren’t in the HTML.
- Please render this text on the server, or pre-render the page, so it is in the first response.
- Then show me the same Ctrl+U test passing on the home page and one product or service page.
How much work this is depends on the test. If View Source already has your text, there may be nothing to fix. If the whole site is built in the browser, moving it to server rendering is a real project.
Will fixing it get me cited by ChatGPT?
No one can promise that. The fix removes one block so the tools can read your page; whether they then mention you is a separate question. To see where you stand, read how to check if your site appears in ChatGPT or Gemini. For the other access problems (robots.txt, firewalls, noindex, your platform), see why ChatGPT can’t see your website, our robots.txt generator and the GEO checklist.
What our free scan checks
The free Mar2i AI scan runs no scripts, like a bot that skips JavaScript. It measures readable text in your home page’s raw HTML, compares what requests named Googlebot, OAI-SearchBot, PerplexityBot and Claude-SearchBot receive with what a browser gets, and on a store’s home page flags product sections that are empty in the HTML. Without an account you see each check’s status; what it found opens once you add the site to a free account.
It reads only the home page, so test inner pages yourself. Its requests carry the crawlers’ names but come from our servers, so the real crawlers may be treated differently. And it can’t tell you whether any AI tool will cite you.
Sources
- Vercel: The rise of the AI crawler · 17 December 2024
- Glenn Gabe (GSQi): AI Search and JavaScript rendering (case study) · 11 August 2025, updated 19 October 2026
- Search Engine World (Andre Alpar): Do AI assistants actually render your JavaScript when grounding? · 9 June 2026, updated 2 July 2026
- searchVIU: Schema markup and AI in 2025: what ChatGPT, Claude, Perplexity and Gemini really see · updated 15 October 2026
- Search Engine Journal (Helen Pollitt): Ask an SEO: can AI systems render JavaScript? · 8 January 2026
- Victorious (an SEO agency): JavaScript rendering · 23 November 2026
- OpenAI: Overview of OpenAI Crawlers
- Google: Understand JavaScript SEO basics · updated 4 March 2026
- Google: Dynamic rendering as a workaround · updated 10 December 2025
- Google: AI features and your website · updated 2 December 2026
- Google: Generate structured data with JavaScript · updated 10 December 2025
- Google Chrome Help: Chrome keyboard shortcuts
- Chrome DevTools: Get started with viewing and changing the DOM · updated 1 March 2019
- Next.js docs: Server and Client Components · updated 25 November 2026
- Shopify developers: Theme architecture