Many modern websites are built with JavaScript. The page a visitor sees is assembled in the browser, after scripts run, data loads, and components appear. That works well for people, because their browsers run JavaScript without thinking about it. It works less well for crawlers, because not every crawler runs JavaScript, and the ones that do may run it late, partially, or not at all.
The honest answer to the title question is: it depends on the crawler, and you should not assume any AI crawler sees what you see. Googlebot does run JavaScript, and Google documents how it does so. The AI crawlers from OpenAI, Anthropic, and Perplexity do not publish a JavaScript rendering step in their crawler docs, so the safe plan is to assume they read the first HTML response your server sends, and nothing more, unless a vendor page says otherwise.
The short answer
A JavaScript website can be invisible to AI crawlers even when it looks perfect in a browser. If the price, the product name, and the description only appear after JavaScript runs, a crawler that does not run JavaScript will see an empty shell, with a heading, a script tag, and little else. It cannot recommend a product it cannot read.
Google Search Central describes how Google processes JavaScript in three main phases: crawling, rendering, and indexing. Googlebot queues pages for rendering, and once Google resources allow, a headless Chromium renders the page and executes the JavaScript. Google also says it will not render JavaScript from blocked files or on blocked pages, and that server side or pre-rendering is still a great idea because it makes your website faster for users and crawlers, and not all bots can run JavaScript. That last sentence is the key to this whole guide. Google can run JavaScript. Not all bots can. Build for the bots that cannot, and Google will still be fine.
OpenAI, Anthropic, and Perplexity do not state in their crawler documentation that their crawlers run JavaScript. Their docs describe which pages their crawlers fetch, which tokens to use in robots.txt, and what happens when you block them, but they do not describe a rendering engine, a render queue, or a JavaScript execution step. That silence is not proof that they never run JavaScript, but it is not a promise that they do, either. A business that relies on an undocumented rendering step is gambling its visibility on a guess.
How it works, step by step
Step one is the first response. When a crawler asks for a page, your server sends back an HTML response. On a server rendered site, that response already contains the product name, the price, the description, and the links. On a client side rendered site, that response contains a near empty shell, with a single container element and a list of script files. The content appears only after the browser downloads those scripts and runs them. A crawler that reads only the first response sees the shell, not the content.
Step three is the AI crawler read. For the AI crawlers, the vendor docs do not describe a render queue at all. OpenAI describes OAI-SearchBot as the crawler that surfaces websites in ChatGPT search features, and ChatGPT-User as the agent that visits a page when a user asks a question. Perplexity describes PerplexityBot as the crawler that surfaces and links websites in Perplexity results, and Perplexity-User as the fetcher that visits a page when a user question needs it. Anthropic describes Claude-SearchBot as the crawler that navigates the web to improve search result quality, and Claude-User as the agent that retrieves a page when a person asks Claude a question. None of those pages says the crawler runs JavaScript, waits for scripts, or reads the rendered page. Plan on the first response being all they see.
Step five is the fix, which is to put the important content in the first response. Server side rendering means the server runs the JavaScript and sends the finished HTML to the visitor. Static generation means the HTML is built ahead of time and served as a finished page. Pre-rendering means a finished HTML copy is made for crawlers and for the first visit. All three put the product name, price, description, and links into the first response, so a crawler that never runs JavaScript can still read them. Google recommends server side or pre-rendering for exactly this reason, and its guide says not all bots can run JavaScript.
What to do on your site
First, test what a crawler actually receives. Turn off JavaScript in your browser, reload a product page, and look at what remains. That is close to what a non rendering crawler sees. If the product name, price, and description vanish, so do they for that crawler. A second test is to fetch the page with curl, which does not run JavaScript, and read the HTML it returns. If the price is not in that HTML, a non rendering crawler will not find it either. The code block later in this guide shows the curl command.
Second, check that your scripts and styles are not blocked in robots.txt. Google says it will not render JavaScript from blocked files or on blocked pages. A robots.txt rule that blocks a script folder can break rendering even for Googlebot, which does run JavaScript. Open your robots.txt file and confirm that the script and style paths your pages need are allowed for Googlebot and for the AI search crawlers.
Third, move the important facts into the first HTML response. The product name, the price, the currency, the stock status, the description, and the main links should all be present in the HTML your server sends, before any script runs. Put structured data in the same response too, as a JSON-LD block in the page head or body, so a crawler can read the facts in labelled form without running a script. The code block later in this guide shows what that first response should contain for a single product.
A worked example
Imagine a furniture maker called Ash and Oak that sells handmade tables through a JavaScript website. The homepage looks beautiful in a browser: large photos, a price that appears when a shopper picks a wood type, and a description that slides in after a short animation. The owner assumes AI systems can see all of it, because Google can see it, and the shop appears in Google Search.
The owner runs the test in this guide. With JavaScript turned off, the product page shows a heading, a blank space where the photo should be, and no price at all. With curl, the HTML contains a single container element and a list of script files, but no product name, no price, and no description. The page is invisible to any crawler that does not run JavaScript, which includes the AI crawlers whose docs do not describe a rendering step.
The owner asks the developer to change the site so the server sends the finished HTML for each product page, with the product name, the default price, the description, and the structured data block in the first response. The JavaScript still runs for visitors, to handle the wood picker and the animation, but it no longer carries the facts. A week later, with JavaScript off, the page shows the name, the price, and the description. With curl, the HTML contains all three, plus the JSON-LD block. The AI crawlers can now read the page, and the shop starts to appear in AI answers for the tables it actually sells.
The lesson is that Google visibility is not proof of AI visibility. Googlebot runs JavaScript, and it can read a client side site, after a render queue delay. An AI crawler that does not publish a rendering step may never read it at all. Building for the weakest reader, the one that only sees the first response, makes the page readable for every reader, including Google.
The machine readable part
The block below shows what the first HTML response for a product page should contain, before any script runs. It is a plain HTML fragment with the product facts in text, plus a JSON-LD block with the same facts in labelled form. Copy the pattern, replace the details with your own, and check that the visible page and the code agree.
<h1>Oak Dining Table</h1>
<p>Handmade solid oak dining table, seats six, with a natural oil finish.</p>
<p>Price: $1,450.00 USD</p>
<p>Availability: In stock</p>
<a href="https://www.yourdomain.com/products/oak-dining-table">View the oak dining table</a>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Oak Dining Table",
"description": "Handmade solid oak dining table, seats six, with a natural oil finish.",
"brand": {
"@type": "Brand",
"name": "Ash and Oak"
},
"offers": {
"@type": "Offer",
"url": "https://www.yourdomain.com/products/oak-dining-table",
"priceCurrency": "USD",
"price": "1450.00",
"availability": "https://schema.org/InStock"
}
}
</script>
Test that your own page matches this pattern with the command below, which fetches the page without running JavaScript and searches for the price. Replace yourdomain.com with your own domain, and replace the price with your own.
curl -s https://www.yourdomain.com/products/oak-dining-table | grep -i "1450"
If the command returns a line with the price, the price is in the first response, and a non rendering crawler can read it. If it returns nothing, the price only appears after JavaScript runs, and a non rendering crawler cannot read it. Fix the page, not the test.
Mistakes to avoid
Mistake one is assuming every crawler runs JavaScript because Googlebot does. Google documents a rendering step. OpenAI, Anthropic, and Perplexity do not publish one in their crawler docs. Do not claim a specific AI crawler runs JavaScript unless a vendor page verifies it, and do not build your site on that claim.
Mistake two is hiding the price behind a picker, a tab, or a click. A crawler does not interact with a page. Show a price for the default option, show the main description without a click, and let interaction add detail, not hide facts.
Mistake three is blocking the scripts and styles a renderer needs. Google will not render JavaScript from blocked files or on blocked pages. Check robots.txt and confirm the script and style paths are allowed.
Mistake four is testing only in a browser with JavaScript on. That test shows what a person sees, not what a crawler sees. Test with JavaScript off, and test with curl, every time you change a product template.
Frequently Asked Questions
Does Googlebot run JavaScript?
Yes. Google Search Central says Google Search runs JavaScript with an evergreen version of Chromium, in three phases: crawling, rendering, and indexing. Googlebot queues eligible pages for rendering, and a headless Chromium executes the JavaScript. Rendering can be delayed, and Google will not render JavaScript from blocked files or on blocked pages.
Do ChatGPT, Claude, or Perplexity crawlers run JavaScript?
Their crawler documentation does not say that they do. OpenAI, Anthropic, and Perplexity describe which pages their crawlers fetch and which tokens to use in robots.txt, but they do not describe a rendering engine or a render queue. Treat them as readers of the first HTML response, unless a vendor page says otherwise.
What is the safest fix for a JavaScript site?
Put the important content in the first HTML response, through server side rendering, static generation, or pre-rendering. Google recommends server side or pre-rendering, and says not all bots can run JavaScript. That fix helps every crawler, including the ones that do render, because it removes the render delay.
Verified Sources & Technical Documentation
- Google Search Central: understand JavaScript SEO basics Specific https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics
- OpenAI bots documentation Specific https://platform.openai.com/docs/bots
- Perplexity crawlers documentation Specific https://docs.perplexity.ai/guides/bots
- Anthropic: does Anthropic crawl data from the web, and how can site owners block the crawler Specific https://privacy.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler
- Schema.org Product type Specific https://schema.org/Product
- Google Search Central: AI features and your website General Docs https://developers.google.com/search/docs/appearance/ai-features
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.