# Can AI Crawlers See Your Website? JavaScript and AI Search

> Many AI crawlers do not run JavaScript, so content built in the browser can be invisible to ChatGPT, Claude and Perplexity. How to test your site and fix it.

Source: https://ranklocaltoday.com/blog/ai-crawlers-javascript-rendering  
Last updated: 2026-11-16

GUIDE

# Can ChatGPT and Claude See Your Website? AI Crawlers and JavaScript

Google renders JavaScript. Many AI crawlers do not. If your services, prices or reviews only appear after scripts run in the browser, assistants such as ChatGPT and Claude may see an almost empty page. Here is how to check in five minutes and what to fix.

By **RankLocalToday** Updated Nov 16, 2026 11 min read

**0** major AI crawlers rendered JS (Vercel, 2024)

**~35%** of ChatGPT and Claude crawler fetches hit 404s

**8.22%** 404 rate for Googlebot in the same study

**View source** the quickest test

**Short answer:** Many AI crawlers read only the HTML your server sends. They do not run JavaScript. A widely cited analysis by Vercel in December 2024 found that none of the major AI crawlers it measured rendered JavaScript, including OpenAI's and Anthropic's. If your services, prices, service areas or reviews appear only after scripts load, ChatGPT, Claude and Perplexity may never see them. Check by viewing the page source. Fix it by rendering important content on the server.

## Google and AI crawlers work differently

Googlebot fetches a page, then renders it in a headless Chromium browser, runs the JavaScript and indexes the result. That rendering step is expensive, but Google has invested in it for years. For Google, a JavaScript-heavy site is usually indexable, though delays and errors still happen. See [how search engines crawl, index and render](https://ranklocaltoday.com/blog/how-search-engines-crawl-index-render).

AI companies run newer crawlers with different priorities. Vercel's analysis, published as [The rise of the AI crawler](https://vercel.com/blog/the-rise-of-the-ai-crawler), looked at real crawler traffic across its hosting network and reported:

- None of the major AI crawlers it measured rendered JavaScript.
- ChatGPT's and Claude's crawlers did fetch JavaScript files, but did not execute them.
- Google's Gemini uses Googlebot's infrastructure, so it benefits from full rendering. AppleBot renders JavaScript through a browser-based crawler.
- Common Crawl's CCBot, whose public dataset is widely used to train AI models, does not render pages either.
- OpenAI's crawler spent 34.82% of its fetches on 404 pages and Anthropic's 34.16%, compared with 8.22% for Googlebot. AI crawlers were less efficient and often requested outdated URLs.

Crawlers evolve, and providers may add rendering later. But until a provider says otherwise, assume that what is not in the HTML is not seen.

## What gets missed on a typical local business site

Even sites built on mainstream platforms often load key pieces with scripts. The usual culprits:

| Element | How it often loads | What AI misses |
| --- | --- | --- |
| Review widgets | Third-party script injects reviews | Your star rating and review text |
| Service area maps and lists | Map embed or script-built list | Which towns you serve |
| Pricing calculators | JavaScript app | Any price information at all |
| FAQ accordions | Answers fetched on click | The answers to the questions customers ask |
| Booking widgets | Embedded iframe or script | Hours, availability, booking options |
| Single-page app sites | Whole page built in the browser | Almost everything |
| Chat and contact widgets | Script-only phone number or form | How to contact you |

## The five-minute test

1. **View source.** Open your key service page and press Ctrl+U (Windows) or Cmd+Option+U (Mac). This shows the HTML the server sent, before JavaScript runs. The developer tools Elements panel is not the same thing; it shows the page after scripts run.
2. **Search the source** (Ctrl+F or Cmd+F) for things that matter: your main service name, a town you serve, your phone number, a phrase from a review, a price.
3. **Disable JavaScript** in your browser settings and reload the page. Whatever you can still read is what non-rendering crawlers can read.
4. **Fetch it from the command line** if you are comfortable doing so:

```
curl -s -A "Mozilla/5.0 (compatible; test)" https://www.example.com/water-heater-repair | grep -i "water heater"
```
5. **Compare with Google's view** using URL Inspection in Search Console (View crawled page, then HTML). If Google sees content that view source does not, that content depends on JavaScript.

## Other reasons AI crawlers miss your content

JavaScript is the most common technical gap, but check these too:

- **robots.txt.** A blanket `Disallow` for AI user agents, sometimes added by a plugin or a hosting preset. OpenAI's documentation says OAI-SearchBot decides whether you can appear in ChatGPT search results, separately from GPTBot, which covers model training. Blocking the wrong one has a different effect from what many owners intend. See [should you block AI crawlers](https://ranklocaltoday.com/blog/should-you-block-ai-crawlers).
- **Firewalls and CDNs.** Bot-protection settings at Cloudflare and other providers can block or challenge AI crawlers by default. Check your dashboard's bot settings and logs.
- **Cookie walls and interstitials** that hide content until a click.
- **Content in images or PDFs only**, such as a price list uploaded as a JPG.
- **Broken or changed URLs.** Given how often AI crawlers request missing pages, keep redirects in place when you change URLs; see [301 vs 302 redirects](https://ranklocaltoday.com/blog/301-vs-302-redirect).

You can confirm which crawlers actually visit, and what status codes they receive, in your server logs. Our guide to [log file analysis](https://ranklocaltoday.com/blog/log-file-analysis-seo-crawl-budget) explains how.

## How to fix it

### Option 1: render on the server (best)

Server-side rendering (SSR) or static site generation (SSG) builds the HTML before it reaches the visitor or the crawler. Most modern frameworks support it, including Next.js, Nuxt, SvelteKit, Astro and Remix, often page by page. Vercel's own recommendation in its study was to prioritize server-side rendering for critical content and keep client-side rendering for enhancements. Our [JavaScript framework SEO guide](https://ranklocaltoday.com/blog/javascript-framework-seo-nextjs) goes deeper.

### Option 2: fix the specific widgets

If your site is mostly HTML already (common with WordPress and similar platforms), fix the pieces that are not:

- **Reviews:** add a short, server-rendered summary in your own words ("Rated 4.8 from 230 Google reviews" with a link to your profile) and a few genuine, attributed quotes, in addition to any widget. Keep numbers current.
- **Service areas:** add a plain HTML list of towns or neighborhoods under the map.
- **FAQs:** keep the answer text in the HTML and use CSS or the `details` element to collapse it. See [hidden content in tabs and accordions](https://ranklocaltoday.com/blog/hidden-content-tabs-accordions-seo).
- **Prices:** add a short HTML table of typical ranges next to any calculator.
- **Contact details:** put your phone number, address and hours as text in the page and footer, not only in a widget.

### Option 3: pre-render key pages

For sites where full SSR is not possible, a build step or service can generate static HTML snapshots of important pages and serve them to everyone. Make sure users and crawlers get the same content.

### What not to do

Do not detect AI crawlers and serve them a special text-only version that differs from what customers see. Showing crawlers different content from users is cloaking under Google's spam policies. Google has also said that dynamic rendering, an older workaround that served pre-rendered HTML only to bots, is no longer a recommended long-term solution.

## Priorities for a local business

You do not need every pixel to be server-rendered. You need the facts an assistant would use to recommend you:

1. Business name, phone, address or service area, and hours.
2. The list of services, each with a short description.
3. Towns and neighborhoods served.
4. Prices or price ranges, where you publish them.
5. Licences, insurance, warranties and years in business.
6. A summary of reviews and a few attributed quotes.
7. Answers to the top customer questions.

If all seven are visible in the page source of your home page and main service pages, you have covered most of what matters. Add [LocalBusiness schema](https://ranklocaltoday.com/blog/local-business-schema-markup-guide) in the HTML as well (not injected by a tag manager) so the same facts are available in structured form.

## A quick case example

Consider a hypothetical landscaping company with a modern single-page site. In a browser it looks polished: animated service cards, a reviews carousel and an interactive map. In the page source, the body is a single empty `div` and a script tag. Google eventually indexes the rendered content. Non-rendering AI crawlers see no services, no towns and no reviews, so the company has nothing for an assistant to quote when someone asks for a landscaper in their suburb.

The fix does not require a redesign. Switching the framework to static generation for the home page, service pages and contact page puts the same content in the HTML. The site looks identical, loads faster on first view, and is readable by every crawler.

## Keep testing

AI providers change their crawlers, and your site changes too. Add a quick check to your monthly routine:

- View source on your three most important pages after any site update or plugin change.
- Check robots.txt and firewall settings after hosting changes.
- Ask the assistants your customers use about your services in your town and see whether the answers reflect your current site. Our [AI visibility test prompts](https://ranklocaltoday.com/blog/ai-visibility-test-prompts) give you a ready-made list.

## Check your robots.txt and firewall in practice

A JavaScript fix is wasted if the crawler is turned away at the door. Two quick checks:

### robots.txt

Open `yourdomain.com/robots.txt` and look for groups that name AI crawlers. A configuration that allows ChatGPT search visibility while opting out of OpenAI model training looks like this:

```
User-agent: OAI-SearchBot
Allow: /

User-agent: GPTBot
Disallow: /
```

Whether to allow training crawlers is a business choice. The key point is to avoid blocking search and retrieval crawlers by accident, for example with a broad `User-agent: *` `Disallow: /` left over from a staging site. Vercel's study noted that robots.txt was respected by all the crawlers it measured.

### Firewall and CDN bot rules

Many CDNs now offer one-click settings to block AI bots, and some hosting providers enable bot protection by default. If your firewall challenges crawlers with a JavaScript check or CAPTCHA page, a non-rendering crawler will only ever see the challenge. Review your bot settings and your firewall logs for blocked requests from AI user agents, and decide deliberately which ones to allow.

## What about Google's AI features?

Google's AI Overviews and AI Mode use Googlebot and Google's index, which renders JavaScript. So a JavaScript-heavy site is not automatically invisible in Google's AI features. But rendering can be delayed, scripts can fail, and content that loads only after user interaction (a click or scroll) may never be rendered. Google itself recommends server-side rendering, static rendering or hydration for content you need indexed reliably, and says in its [JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) that pre-rendering is faster for users and crawlers. Fixing the problem for AI crawlers usually makes Google's job easier too.

## Single-page apps, soft 404s and wasted crawls

The Vercel data showed AI crawlers spending about a third of their fetches on 404 pages, compared with about 8% for Googlebot. That points to a second problem for JavaScript-heavy sites: status codes.

- **Soft 404s.** Many single-page apps return a 200 status for every URL and display "page not found" with JavaScript. A crawler that does not run scripts sees a successful but empty page, and a crawler that does sees a not-found message with a success code. Configure the server to return a real 404 for missing pages. Our [soft 404 guide](https://ranklocaltoday.com/blog/soft-404-detection-and-fixes) covers detection.
- **Old URLs.** AI crawlers often request outdated URLs. Keep 301 redirects from old paths after a redesign so those requests land on live pages.
- **Hash-based routes.** URLs like `/#/services` are treated as one page by crawlers, because the part after `#` is not sent to the server. Use real paths such as `/services`.
- **Internal links.** Navigation must use `a` elements with real `href` values so crawlers can discover pages without running scripts.

Fixing these improves crawl efficiency for every crawler, Google's included, and makes your server logs much easier to read.

## A note on structured data

If your schema markup is injected by JavaScript, for example through a tag manager, crawlers that do not render scripts will not see it. Google can process JavaScript-generated structured data, but put LocalBusiness, Organization and FAQ markup directly in the HTML so every system can read it. Our [Schema Generator](https://ranklocaltoday.com/schema-generator) outputs a block you can paste into your template.

## The bottom line

For Google, JavaScript is a delay; for many AI crawlers, it is a wall. The safest rule is simple: if a fact matters for winning a customer, it should be in the HTML your server sends. Test with view source, fix the few widgets that hide key information, render important pages on the server, and never show crawlers something different from what customers see.

## Frequently asked questions

### Do AI crawlers execute JavaScript?

Mostly no, based on the best public data. Vercel's December 2024 analysis of crawler traffic across its network found that none of the major AI crawlers it measured rendered JavaScript, including OpenAI's GPTBot, Anthropic's ClaudeBot and PerplexityBot. Some fetched JavaScript files without executing them. Google's Gemini relies on Googlebot's rendering, and AppleBot renders JavaScript.

### Why can't ChatGPT see my website content?

Common causes are content built with client-side JavaScript, robots.txt rules or a firewall blocking OpenAI's crawlers, content behind logins or cookie walls, and pages that return errors. Check the raw HTML, your robots.txt for OAI-SearchBot and GPTBot, and your CDN or firewall bot settings.

### Is Google affected by the same problem?

Less so. Googlebot renders JavaScript using an up-to-date Chromium, though rendering can be delayed and errors can still hide content. Google still recommends server-side or static rendering for important content because it is faster and more reliable.

### Do I need to rebuild my website to fix this?

Usually not. Many frameworks support server-side rendering or static generation for specific pages. Website builders like WordPress, Squarespace and Wix generally send the main page text as HTML already. The fix is often limited to a few widgets: reviews, pricing tables, service area maps and FAQ accordions that load by script.

### How do I test what an AI crawler sees?

View the page source in your browser, or fetch the URL with a command-line tool such as curl and read the HTML. You can also disable JavaScript in your browser and reload. If your headings, service descriptions and contact details are visible, crawlers that do not render JavaScript can read them.

### Should I serve different content to AI crawlers?

No. Serving different content to crawlers than to users is cloaking, which breaks Google's spam policies. Instead, render the same content server-side for everyone. Dynamic rendering, a workaround Google once described, is no longer recommended by Google.

More in this topic: [AI search optimization, all 66 guides →](https://ranklocaltoday.com/blog/ai-search-optimization-guides)

### Find out what AI can read on your site

Run the free Website SEO Audit and AI Visibility Checker, or book a free audit and we will test your key pages the way AI crawlers fetch them.

[Book Free Audit →](https://calendly.com/deepak-ranklocalnow/30min)

## Turn local visibility into qualified demand

Start with an accurate baseline and a prioritized action plan.

[Build Your Free Local SEO Plan →](https://ranklocaltoday.com/local-seo-plan)
