Learn
Article 30 / Technical

Can AI Read Your Website? JavaScript, Speed and Broken Links

AI tools can use a website only when three things are true. Their crawlers are allowed in, the key text is in the page without needing JavaScript, and the page loads fast. A Vercel and MERJ study found that none of the major AI crawlers it measured ran JavaScript, including OpenAI's and Anthropic's. AI tools also invent page addresses that do not exist. This article explains each problem, how to test it in a browser, and what passing does and does not mean.

Last updated: December 1, 2026

Crawler access comes first

If a crawler is blocked, nothing else on the page matters for that AI tool.

Blocks usually live in the robots.txt file or in a security setting at the hosting or CDN level, such as Cloudflare. Many owners never set them on purpose. In Peec AI's Q3 2026 report, a Peec product manager says about one in nine sites it audited turned away requests carrying an AI bot's name at the CDN or firewall.

Some of those blocks stop fake bots, so not every one is a mistake. Server logs show which is which. The robots.txt guide covers the crawler names and settings in detail.

Why JavaScript can hide a page from AI

Some AI crawlers read only the raw page the server sends, so text that appears only after JavaScript runs can be invisible to them.

Vercel and MERJ analyzed live crawler traffic and published the results in December 2024. None of the major AI crawlers rendered JavaScript, including OAI-SearchBot, ChatGPT-User, GPTBot and ClaudeBot. Google's crawler does render JavaScript, which covers Google's own AI features.

Sites built as single-page apps are the classic risk. Widgets are a quieter one: price calculators, review carousels, booking tools and service lists that load after the page opens. If the phone number or the prices exist only inside a widget, an AI crawler may never see them.

The usual fix is to have the server send the finished text, often called server-side rendering. Many standard WordPress pages already do this, while add-on widgets vary.

How to test JavaScript in a browser

A browser test takes a few minutes and needs no tools.

  1. Open the homepage in Chrome and press F12 (Cmd+Option+I on a Mac) to open DevTools.
  2. Press Ctrl+Shift+P (Cmd+Shift+P on a Mac), type Disable JavaScript, and press Enter.
  3. Reload the page and check that the headline, services, prices, phone number, address and main text still show.
  4. Repeat on one service page, then close DevTools to turn JavaScript back on.

A faster spot check: open View Page Source and search for your phone number. If it is not in the source, it depends on JavaScript.

Why page speed matters for AI

AI tools fetch pages live while they write an answer, so a slow page can be skipped before it is read.

The Ahrefs AI search course makes this point, and it is consistent with how live retrieval works. No study has shown that a better speed score earns more AI mentions, so treat speed as a basic requirement rather than a ranking trick.

Google's Core Web Vitals give clear targets: Largest Contentful Paint of 2.5 seconds or less, Interaction to Next Paint of 200 milliseconds or less, and Cumulative Layout Shift of 0.1 or less. PageSpeed Insights at pagespeed.web.dev shows all three for free.

AI tools sometimes link to page addresses that never existed, and a visitor who clicks lands on an error page.

Ahrefs checked 16 million URLs cited by six AI assistants and found they sent visitors to 404 error pages 2.87 times as often as Google Search, a rate of 0.43% against 0.15%. ChatGPT showed the highest rate in that study.

The fix is simple. Look in analytics for error pages that get visits from AI tools, then redirect each repeated one to the closest real page. A helpful error page with links to your main services catches the rest.

What passing these checks does and does not mean

Passing removes technical blockers. It does not guarantee that AI will name the business.

Whether AI names a company also depends on reviews, the Google Business Profile, mentions on other sites and clear answers on the pages themselves. Google states that a page must be indexed and eligible to show a snippet before it can appear in its AI features, so technical access is the floor.

Key takeaways

  • AI can use a page only if its crawlers get in, the text loads without JavaScript, and the page is fast.
  • In the Vercel and MERJ study, none of the major AI crawlers measured ran JavaScript.
  • A JavaScript-off browser test or a page-source search for your phone number shows the risk in minutes.
  • AI assistants sent visitors to error pages 2.87 times as often as Google in Ahrefs' study, so redirect repeated ones.
  • Passing the checks removes blockers but does not guarantee being named.

Questions and answers

Does Google's AI have the same JavaScript problem?

Less so. Google's crawler renders JavaScript, which serves Google's AI features. The risk is mainly with other AI tools whose crawlers read only the raw page.

Is a WordPress site safe from the JavaScript problem?

Standard WordPress pages usually send their text in the raw page. Page builders and add-on widgets vary, so test the pages that matter most rather than assuming.

How often should these checks be repeated?

Every few months, and after any website redesign, plugin change or hosting change. Security settings and plugins can add blocks without anyone noticing.

Sources

Run all three tests on your own site with the free 15-minute technical check.

Get the free check
Next in Learn

AI Crawler Management: A Robots.txt Guide

Read article

How to Run a Technical GEO Audit

Read article