How AI sees your page

JavaScript and AI: why your page can look empty

The same web page with and without JavaScript: in a browser, all of the content shows; for a crawler that does not run JavaScript, the page can look almost empty HOW AI SEES YOUR PAGE An empty page for AI? With JavaScriptwhat a browser showstitle, text and imagesmenus and buttonsall of the contentas intendedWithout JavaScriptwhat some crawlers receivea title, maybe a menulittle or no textan almost empty page“Enable JavaScript”Same code, two results: it all depends on who runs the JavaScript

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.

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).

AssistantWhat was observedWho tested it
ChatGPTRaw HTML only; in Glenn Gabe’s tests, it saw only the menu and the footerRESONEO, Search Engine World, Glenn Gabe
ClaudeRaw HTML onlyRESONEO, Search Engine World, Glenn Gabe
PerplexityRaw HTML only; in Glenn Gabe’s tests, extraction dominated by the cookie bannerSearch Engine World, Glenn Gabe
GeminiNo JavaScript on test pages (at Search Engine World, new addresses linked nowhere); content seen on real pagesRESONEO, 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
DeepSeekRuns JavaScriptRESONEO, 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.

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. 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. The overall picture is in How an AI sees your web page, and the concrete steps will be gathered in the checklist for making a 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.

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.

Spotted an error or a change? Write to me from the home page: every correction is dated at the bottom of the article.

Share this article