Learning Center · Answers · Readability

Do AI agents run JavaScript?

Short answer

Some do, and many don't. Training crawlers, AI search crawlers and assistant fetchers usually read only the HTML your server sends, while browser agents run JavaScript but are slow and impatient. Put product name, price, availability, key specifications, shipping, returns and plan pricing in the server's HTML so every kind of agent can read them.

Answer · Last checked November 12, 2026 · Based on Why AI agents can't see your JavaScript-only content, The AI agents that visit your website, and what each one wants

In more detail

A browser loads a page in two stages. It downloads the HTML your server sends, then runs the JavaScript, which may fetch more data and build much of what you see. Most AI crawlers stop after the first stage, because running JavaScript for billions of pages is slow and expensive. Assistant fetchers, which fetch a page because someone asked a question, usually read the HTML only and have a few seconds at most.

Googlebot does run JavaScript, so a site can rank well in Google and still look nearly blank to AI assistants. A single-page app may send only an empty shell with no product name, no price and no text. Prices loaded from an API, infinite scroll lists, tab content fetched on click, structured data added by a tag manager and review widgets often go missing.

You don't need to render everything on the server. Personalized recommendations, recently viewed items and chat widgets can stay in JavaScript. Server-side rendering for key pages is usually the biggest single fix. Pre-rendering for bots can tide you over, but it means maintaining two versions of each page, and Google describes serving bots differently as a workaround.

What to do

  1. Open View Page Source on a product page and search for a price you can see.
  2. Turn JavaScript off in Chrome's developer tools and reload to see roughly what an HTML-only agent sees.
  3. Ask your developers to render the essentials on the server first.
  4. Add real paginated links that agents can follow alongside infinite scroll.
  5. Move structured data out of your tag manager and into the page template.

Read more

All answers

How does your own site do?

AgentScore checks your site in about a minute and ranks what to fix first.