---
title: "JavaScript and AI: why your page can look empty"
url: https://www.devjpt.com/en/blog/javascript-ai-empty-page/
site: "Jean-Philippe Thériault"
type: post
language: en
published: 2026-12-01T05:11:47+00:00
updated: 2026-12-01T19:27:14+00:00
author: "Jean-Philippe Thériault"
description: "JavaScript and AI: why a page built with JavaScript can look empty to some AI crawlers, how to check what they receive, and which solutions exist."
translations:
  ca: https://www.devjpt.com/ca/blog/javascript-ia-pagina-buida/
  es: https://www.devjpt.com/es/blog/javascript-ia-pagina-vacia/
  fr: https://www.devjpt.com/blog/javascript-ia-page-vide/
agent:
  instructions: "This site offers a search endpoint for AI agents. Results are returned in Markdown."
  endpoint: "https://www.devjpt.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.devjpt.com/.well-known/agent-skills/lire-devjpt/SKILL.md"
---

# JavaScript and AI: why your page can look empty

*Updated December 1, 2026.*

Your page can look empty to an AI when its content is added by JavaScript after the page loads. Google runs that JavaScript before indexing the page. But several AI crawlers, and several assistants that read a page when a person asks them to, have been measured reading only the raw HTML (the HTML as the server sends it, before any JavaScript): according to a measurement published by the hosting company Vercel in December 2024, then according to tests from 2025 and 2026 on ChatGPT, Claude and Perplexity. What they receive is sometimes the menu, the footer, and almost nothing else.

Two caveats: these measurements come from companies and consultants, not from peer-reviewed studies, and behaviour can change without notice.

## One page, two versions: the HTML received and the page displayed

**HTML** is the text your site’s server sends: headings, paragraphs, links. **JavaScript** is a program that the browser then runs to add or change content. **Rendering** is the step where that JavaScript builds the final page. A **crawler**, or bot, is a program that retrieves pages automatically.

With *server-side rendering*, the server sends complete HTML; with *client-side rendering*, JavaScript builds the content in the browser (definitions from web.dev, a Google site).

Picture a restaurant whose menu and prices arrive through a script: your customer sees them, but a crawler that doesn’t run JavaScript sees only the header, the footer and an empty space. Google says so itself: “not all bots can run JavaScript.”

## Google runs JavaScript, but with a queue

According to its documentation, consulted on November 30, 2026, Google Search runs JavaScript with an up-to-date version of Chromium, the foundation of the Chrome browser. Googlebot reads the HTML first and puts the page in a rendering queue, for a few seconds or longer; it then comes back to run the JavaScript and indexes the rendered version.

According to a measurement published in July 2024 by Vercel and the agency MERJ on the nextjs.org site, the median delay was 10 seconds, but 1% of pages waited about 18 hours or longer. That is a single large technical site: these figures do not necessarily apply to a small business’s website.

Google’s AI Overviews and AI Mode rely on the Google Search index. According to Google, to be offered as a link in these answers, a page must be indexed and able to appear with a snippet (the short text under the title), with no additional technical requirements. In principle, these features can therefore use the content Google sees after rendering; consultant Glenn Gabe holds the same view (August 2025), which he deduces from how Google works rather than from a test.

Bing announced in October 2019 that it runs JavaScript with Microsoft Edge; I could not read its current guidelines page, which only displays with JavaScript.

## AI crawlers that explore the web: raw HTML, according to the most cited measurement

Crawlers travel the web to build a search index or to collect training data. Common Crawl, whose archives are often used to train language models (according to Vercel), states in its FAQ, consulted on November 30, 2026, that its crawler, CCBot, does not currently run JavaScript. OpenAI, Anthropic, Perplexity and Meta, for their part, say nothing about it: their documentation for site owners, consulted the same day, mentions neither JavaScript nor rendering.

The most cited outside measurement, published by Vercel with MERJ in December 2024, is based on logs from nextjs.org, from Vercel’s network and from two job-listing sites. None of the major AI crawlers observed ran JavaScript: GPTBot, OAI-SearchBot and ChatGPT-User (OpenAI), ClaudeBot (Anthropic), Meta-ExternalAgent (Meta), Bytespider (ByteDance) and PerplexityBot. Among them, ChatGPT-User does not crawl the web: according to OpenAI, it reads a page when a person asks for it. This measurement therefore already covered on-request reading. GPTBot and ClaudeBot did download JavaScript files, but without running them. According to the same authors, Gemini benefits from Googlebot’s infrastructure, which runs JavaScript, and Applebot, Apple’s crawler, ran it too.

Limits: this measurement is not peer-reviewed, it dates from December 2024, and Vercel sells hosting services for this kind of site as well as a firewall against bots. To my knowledge, no more recent measurement of these crawlers had been published as of November 30, 2026: the 2026 tests cover on-request reading. Who is who: see [the list of AI crawlers](https://www.devjpt.com/en/blog/ai-crawlers-list/).

## When someone pastes your address into an assistant

The assistant then reads the page on the spot. Three sets of tests examined this case: the agency RESONEO (January 2026, a test page that added content in 15 ways), Andre Alpar for Search Engine World (June 2026, 12 assistants) and Glenn Gabe (August 2025 and October 2026, on real pages).

| Assistant | What was observed | Who tested it |
| --- | --- | --- |
| ChatGPT | Raw HTML only; in Glenn Gabe’s tests, it saw only the menu and the footer | RESONEO, Search Engine World, Glenn Gabe |
| Claude | Raw HTML only | RESONEO, Search Engine World, Glenn Gabe |
| Perplexity | Raw HTML only; in Glenn Gabe’s tests, extraction dominated by the cookie banner | Search Engine World, Glenn Gabe |
| Gemini | No JavaScript on test pages (at Search Engine World, new addresses linked nowhere); content seen on real pages | RESONEO, Search Engine World, Glenn Gabe |
| Copilot (Microsoft) | The tests disagree: JavaScript run with a very short timeout, script downloaded without being run, or content seen on two real pages out of three (Glenn Gabe attributes this to Bing’s index) | RESONEO, Search Engine World, Glenn Gabe |
| DeepSeek | Runs JavaScript | RESONEO, Search Engine World |

For Gemini, one lead: according to Google, the URL-reading tool of the Gemini API (the service offered to developers) first looks for the page in an internal index and only reads it live if it isn’t there. A page already indexed would therefore benefit from Google’s rendering; a new page, like the never-linked addresses in the Search Engine World test, would not. This is a hypothesis, and that documentation covers the API, not necessarily the Gemini app.

Each test covers few pages, at a given moment: these results describe what was observed from the outside, not documented behaviour.

## Agent browsers: another family of tools

A third family uses a real browser driven by AI, when a person gives it a task: the cloud browser of ChatGPT Work, the browsers hosted by Anthropic (“a real browser,” Anthropic writes) or the Claude in Chrome extension. You can expect them to display your page with its JavaScript, even though the providers do not put it in those terms. But they do not replace crawlers: Anthropic states that this browsing is distinct from ClaudeBot, Claude-User and Claude-SearchBot. A page that displays well for an agent can therefore stay almost empty for crawlers.

## Is your site affected?

The most exposed: single-page apps made with React, Vue or Angular, when all the content is built in the browser. It is not the tool that matters, but where the page is built.

Good news for many small businesses: according to WordPress’s developer documentation, WordPress “has always been built on the foundation of server-side rendering.” Wix also says it uses server-side rendering, but adds that content added by custom code must be ready before the initial render. For Squarespace, Shopify or Webflow, I found no documentation to cite.

On any platform, also watch the elements added by a script after loading: a reviews widget, a booking module, a price table supplied by an outside service, a carousel, tabs. Test them one by one with the methods below. Vercel, for that matter, considers it fine to leave secondary elements to JavaScript, such as a view counter or a live chat.

Cookie banners, seen above with Perplexity, raise another problem: see [what hides your content from AI](https://www.devjpt.com/en/blog/content-hidden-from-ai/).

## How to see your page like a crawler that doesn’t run JavaScript

1. **View the source** (right-click, then “View page source”): that is the HTML sent by the server. Look for a price, your opening hours, a sentence from your text. Careful: “Inspect” shows the page already transformed by JavaScript.
2. **Disable JavaScript**: in Chrome, open the developer tools (F12 key), then the command menu (Ctrl+Shift+P; Cmd+Shift+P on Mac), type “javascript,” select “Disable JavaScript” and reload the page. Whatever disappears depends on JavaScript.
3. **Try the [free simulator](https://www.devjpt.com/en/tools/ai-page-view-simulator/)**. It shows what a fetch of the page without JavaScript receives and warns you when the page looks almost empty. It does not run JavaScript itself: to compare, look at the page in your own browser. It is a simple fetch, not the actual crawler of an AI company.
4. **For Google**, the URL Inspection tool in Search Console shows a screenshot of the page as Google sees it after rendering; Google also offers the Rich Results Test to check that rendering.

Asking an assistant to quote the first and last paragraph of your page, as Glenn Gabe did, only gives you a clue: it may draw on an index or make things up. In RESONEO’s test, Gemini’s reader first invented the content before reading the page.

## The solutions: put the important content in the HTML

Google recommends three solutions:

- **Server-side rendering**: the server builds the complete page at each request.
- **Static generation**, or prerendering: the HTML pages are produced in advance, when the site is built.
- **Hydration**: JavaScript adds interactivity on top of HTML that is already complete.

“Dynamic rendering,” which means serving a special version to crawlers, is only a stopgap: Google writes that it “is a workaround and not a recommended solution,” because it adds complexity and requires more resources.

No need to redo everything. The principle is called progressive enhancement: essential content that as many people as possible can read, then the rest. You can also choose server-side rendering for some pages only. What matters is that the main text, headings, prices, contact details and navigation links are in the HTML.

If your site is built entirely in JavaScript, show your test results to the person who developed it. Once the HTML is received, the AI still has to extract its text: see [how AI extracts a page’s content](https://www.devjpt.com/en/blog/how-ai-extracts-page-content/). The overall picture is in [How an AI sees your web page](https://www.devjpt.com/en/blog/how-ai-sees-your-web-page/), and the concrete steps will be gathered in [the checklist for making a page readable by AI](https://www.devjpt.com/en/blog/make-your-page-readable-by-ai/).

> **Waitlist.** I’m building new tools to help website owners and creators stay in control when it comes to AI. [Get notified at launch.](https://www.devjpt.com/en/waitlist/?source=javascript-ai-empty-page)

## Frequently asked questions

### Can ChatGPT read a website built entirely in JavaScript, with React, Vue or Angular?

Not always. According to a measurement published by Vercel in December 2024, OpenAI’s crawlers (GPTBot, OAI-SearchBot and ChatGPT-User) did not run JavaScript, and tests from 2025 and 2026 found the same for ChatGPT’s on-request reading. If all the content is built in the browser, ChatGPT may see only the menu and the footer. A site made with these tools but rendered on the server does not have this problem.

### Does Google read page content loaded by JavaScript, and how long does it take?

Yes. According to its documentation, Google Search runs JavaScript with an up-to-date version of Chromium, after a stay in a rendering queue. According to a measurement by Vercel and MERJ published in July 2024 on the nextjs.org site, the median delay was 10 seconds, but 1% of pages waited about 18 hours or longer. The URL Inspection tool in Search Console shows the page as Google sees it after rendering.

### Do Google’s AI Overviews and AI Mode see content loaded by JavaScript?

In principle, yes. According to Google, these features rely on the Google Search index: to be offered as a link in these answers, a page must be indexed and able to appear in Google with a snippet (the short text under the title), with no additional technical requirements. The content Google sees after rendering is therefore the content they can use, which consultant Glenn Gabe also believes (August 2025), by deduction rather than from a test.

### Do Claude, Perplexity, Gemini and Copilot run JavaScript when they read a page on request?

According to tests published in 2025 and 2026, Claude and Perplexity read the raw HTML without running JavaScript. Gemini read test pages, including new addresses linked nowhere, without JavaScript, but saw the content of real pages, perhaps thanks to Google’s index. For Copilot, the published tests disagree. The providers do not document this point, and this behaviour can change.

### Is a classic WordPress site affected by the JavaScript problem with AI?

Usually, not much. According to WordPress’s documentation, WordPress normally builds its pages on the server, so the main text is usually already in the HTML. What to check are the add-ons loaded through a script, such as a reviews widget, a booking module or tabs: view the source, disable JavaScript or use the simulator.

### How can you see your web page like a crawler that doesn’t run JavaScript?

Three simple ways: view the page’s source (not “Inspect”), disable JavaScript in Chrome’s developer tools and reload the page, or use devjpt.com’s free simulator. If your prices, your hours or your main text disappear, they depend on JavaScript. The simulator imitates a simple fetch, without JavaScript: it is not the actual crawler of an AI company.

### Is dynamic rendering, which serves a special version to crawlers, a good solution for AI?

Google considers it a stopgap, not a recommended solution, because it adds complexity and requires more resources. Google recommends server-side rendering, static generation or hydration instead, which put the content in the HTML for all visitors, crawlers included.

## Sources

Documents consulted on November 30, 2026.

- Google Search Central, “[Understand the JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics),” “[Dynamic rendering as a workaround](https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering),” “[Fix Search-related JavaScript problems](https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript)” and “[AI features and your website](https://developers.google.com/search/docs/appearance/ai-features).”
- web.dev (Google), “[Rendering on the web](https://web.dev/articles/rendering-on-the-web),” February 6, 2019, updated January 5, 2026.
- Search Console Help (Google), “[URL Inspection tool](https://support.google.com/webmasters/answer/9012289).”
- Google AI Studio, “[URL context](https://aistudio.google.com/docs/url-context)” (Gemini API).
- Chrome for Developers, Kayce Basques and Sofia Emelianova, “[Disable JavaScript](https://developer.chrome.com/docs/devtools/javascript/disable),” updated January 31, 2019.
- Bing Webmaster Blog, Fabrice Canel, “[The new evergreen Bingbot simplifying SEO by leveraging Microsoft Edge](https://blogs.bing.com/webmaster/2019/10/The-new-evergreen-Bingbot-simplifying-SEO-by-leveraging-Microsoft-Edge/),” October 9, 2019.
- Common Crawl, “[Frequently Asked Questions](https://commoncrawl.org/faq).”
- OpenAI, “[Overview of OpenAI Crawlers](https://developers.openai.com/api/docs/bots)” and “[Using cloud browser in ChatGPT](https://help.openai.com/en/articles/20001280-using-cloud-browser-in-chatgpt).”
- Anthropic, “[Does Anthropic crawl data from the web, and how can site owners block the crawler?](https://support.claude.com/en/articles/8896518),” “[How do Anthropic-hosted browsers identify themselves when they browse the web on a user’s behalf?](https://support.claude.com/en/articles/18234133)” and “[Piloting Claude in Chrome](https://claude.com/resources/articles/claude-for-chrome),” August 25, 2025.
- Perplexity, “[Perplexity Crawlers](https://docs.perplexity.ai/docs/resources/perplexity-crawlers).”
- Meta, “[Meta Web Crawlers](https://developers.facebook.com/docs/sharing/webmasters/web-crawlers/).”
- Vercel (with MERJ), “[The rise of the AI crawler](https://vercel.com/blog/the-rise-of-the-ai-crawler),” December 17, 2024, and “[How Google handles JavaScript throughout the indexing process](https://vercel.com/blog/how-google-handles-javascript-throughout-the-indexing-process),” July 31, 2024.
- Glenn Gabe, G-Squared Interactive, “[AI Search and JavaScript Rendering – How client-side rendering causes visibility and ranking problems in ChatGPT, Perplexity, Claude, and others \[Case Study\]](https://www.gsqi.com/marketing-blog/ai-search-javascript-rendering/),” August 11, 2025, updated October 19, 2026, and “[434 Days Later – Are AI Search Platforms Like ChatGPT and Claude Still Unable To Render JavaScript In October 2026?](https://www.gsqi.com/marketing-blog/can-ai-search-platforms-render-javascript/),” October 19, 2026.
- Andre Alpar, Search Engine World, “[Do AI Assistants Actually Render Your JavaScript when Grounding? We Put It to the Test.](https://www.searchengineworld.com/do-ai-assistants-actually-render-your-javascript-when-grounding-we-put-it-to-the-test),” June 9, 2026, updated July 2, 2026.
- RESONEO, “[AI Search crawler test results | LLM rendering capabilities 2026](https://think.resoneo.com/sentinel/geo-llm-crawler-report.html),” January 2026.
- MDN Web Docs (Mozilla), “[Progressive enhancement](https://developer.mozilla.org/en-US/docs/Glossary/Progressive_Enhancement).”
- WordPress Developer Resources, “[Server-side rendering: Processing directives on the server](https://developer.wordpress.org/block-editor/reference-guides/interactivity-api/core-concepts/server-side-rendering/).”
- Wix Developers, “[SEO Best Practices](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/best-practices/seo-best-practices).”

*Spotted an error or a change? Write to me from the [home page](https://www.devjpt.com/en/): every correction is dated at the bottom of the article.*
