Why AI Agents Ignore JavaScript-Heavy Websites

Googlebot renders JavaScript. Most AI crawlers do not. If your content only exists after a script runs, it may not exist to them at all.

Abstract violet and magenta light filaments on a dark background, the AxiomAI brand motif

TopicHow AI Reads the Web

Google renders JavaScript before indexing, but it does it in a separate, deferred stage. Most AI crawlers are simpler. They fetch the HTML and read what is in it. If your content only appears after a script runs, a crawler that does not run scripts sees an empty page, and an empty page cannot be quoted.

What Google actually does

Google works in three phases. It crawls a page, renders it, then indexes it. Rendering is queued separately because executing JavaScript is expensive Google, JavaScript SEO basics. So JavaScript content does get indexed, just not straight away.

What other crawlers do

OpenAI and Anthropic both publish which crawlers they run and what each is for OpenAI, bots and crawlers Anthropic, crawling and blocking. You cannot tell from the outside whether a given crawler runs your scripts, so assume the simpler behaviour. The crawler requests the page and reads whatever HTML comes back. If the sentence you want quoted only arrives via an API call after page load, treat it as invisible.

The test that settles it in one minute

Disable JavaScript in your browser and load your most important page. What remains is roughly what a non-rendering crawler sees. If your headline answer, your prices, your FAQ or your contact details vanish, you have found your problem.

The fix is to render that content on the server so it is already in the HTML before any script runs.

What breaks most often

It is rarely the whole page that disappears, which is what makes it hard to spot.

How strong is your own AI marketing? Take the free two minute scorecard and get an honest read plus the next steps that matter most.

Take the scorecard
  • Prices loaded from an API. The crawler gets a product page with no price on it, and the price is usually the thing the buyer came to check.
  • Tabbed content. Specifications, FAQs and delivery details hidden behind tabs that fetch on click.
  • Reviews via a third-party widget. Your social proof lives in someone else's iframe and is not on your page at all.
  • Cookie walls. If a consent banner loads before the content, a crawler can end up with the banner and nothing else.
  • Client-side routing. When the browser decides which page to build rather than the server, a direct request for a deep URL can come back as the same near-empty file every route starts from.

Rendering costs you time even where it works

Because rendering waits its turn in that queue, JavaScript content reaches the index later than the HTML around it Google, JavaScript SEO basics. For an evergreen guide that hardly matters. For a price change, a stock update or a news item it matters a great deal. That is why a site can be well built and still show up late.

Fixing it in the order that pays

Server-render or pre-render the pages that earn enquiries, starting with the ones people land on from search. Put the one sentence that matters most into the initial HTML, even if the rest of the page loads in afterwards. That is usually the answer, the price or whether the item is in stock. Keep navigation as real links, not click handlers, so a crawler can follow them. None of this requires abandoning a framework, and all of it also helps people on slow connections.

If you would rather test this than guess, our free tools include a crawler check. Where the problem runs wider than one page, technical SEO is the place to start.

Common questions

Does this mean avoiding React or Vue?

No. It means rendering them on the server or at build time so the HTML arrives complete. The framework is fine. Serving an empty shell is the problem.

How do I know if it is affecting me?

Compare what the raw HTML contains against what the rendered page shows. Your server logs will also tell you which crawlers visit and how often Google, crawl stats report.

Is infinite scroll a problem?

For crawlers, usually yes. Anything that only loads when the reader scrolls will not load for a crawler, because nothing is doing the scrolling.

Get a technical audit of what crawlers actually see

What do you need help with?

One click, two quick steps left.

Put this to work on your business

We build exactly this, SEO, AI visibility, PPC, email and automation, as one measured system. Talk it through with a real person, no obligation.

Book a free strategy call or take the two minute scorecard