Your browser runs the scripts that build the page, while many AI crawlers fetch only the HTML the server sends and never run them. If your text arrives through JavaScript, the assistant gets a near-empty document and has nothing to say about you. The quickest way to see what it sees is to disable JavaScript in your browser, reload, and look at the page. This guide shows that look, a stricter fetch that can fail, the usual causes of a blank result, and what to change.

Why a page can look fine and still be empty

A modern page often ships a tiny HTML file with one empty container and a script. The browser downloads the script, runs it, and the script writes the headline, the paragraphs and the menu into the container. For a person this is invisible; the page appears a moment later.

A reader that stops after the download sees only the container. Vercel studied the traffic of the large AI crawlers and reports that none of the major ones it looked at, including those of OpenAI, Anthropic, Meta, ByteDance and Perplexity, run JavaScript. It also notes they may still download script files, which is not the same as executing them (Vercel, The rise of the AI crawler). Gemini is the exception the article names, because it relies on Googlebot's machinery, and Apple's crawler renders pages as well.

Google itself works in two steps. It fetches and parses the HTML, then puts the page in a queue for a headless Chromium that runs the scripts, which can take longer than a few seconds. Google's own documentation says server-side rendering or pre-rendering is still a good idea, because not all bots can run JavaScript (Google Search Central). So a page can be fine for Google Search and blank for an assistant built on a different crawler.

The first look: disable JavaScript and reload

This takes a minute and needs no tools.

  1. Open your page in Chrome, Edge or Firefox.
  2. Open the developer tools, find the setting that turns scripts off (in Chrome it is in the command menu, by typing "disable javascript"), and tick it.
  3. Reload the page.

Read what is left. A full article, a product description or a documentation page with real text means the content is in the HTML. A white screen, a spinner, a line asking you to enable scripts, or only a header and footer means the text is produced by scripts.

Do this on more than one page. A home page that works and a deeper page that does not is a common pattern, and it is the one that fools people most.

This look has limits. Turning scripts off in your browser shows the page without scripts, but it also keeps your cookies, your cache and your location. A crawler comes with none of that, and sometimes gets a different answer from your server. That is why the second step matters.

A test that can fail: request the raw HTML and search it

Pick one sentence from the body of a real page, something specific like a sentence from the third paragraph, not the title. Then fetch the page the way a simple reader would, with no script engine, and search the answer for that sentence.

  1. Request the page with curl -sL and save the output to a file.
  2. Search the file for your sentence, ignoring the markup around it.
  3. Repeat for a second, deeper page of the site.

If the sentence turns up on both pages, your text travels in the first HTML response. If it is missing, the assistant never receives it, whatever the browser shows.

Next, give the test a way to fail, a step most people leave out. First, search for an invented sentence that appears nowhere in your content and confirm the search comes back empty; this proves the search does not match everything. Second, make sure the answer is the real page and not a login wall, a bot challenge or an error screen, because a blocked request also lacks your sentence and would look like the same bug. Check the status code and glance at the file. If a simple fetch is refused while your browser is not, that is a different problem, and our note on reading AI crawler access tests correctly explains how to tell the two apart.

Where the text goes missing

When the sentence is not in the raw HTML, work out which layer held it back. They are listed here from the outside in.

  • A client-only shell. The HTML file has an empty root and a script, and neither the build nor the server writes text for any route. Many single-page app templates start this way.
  • A framework that renders on the server but holds the content back. A component that returns nothing until it has mounted in the browser, a dynamic import with server rendering switched off, a wrapper meant only for the client, or data loaded inside an effect while the server sends a spinner. The framework is doing server rendering; this one component opts out.
  • Pre-rendering that covers only some routes. Only the front page and a few fixed paths get HTML files, while pages with a variable part in the address fall back to the empty shell. This is why the second page in the check above matters.
  • A different answer for crawlers. Some setups send full HTML only to requests that identify as a crawler. That can look fine in a crawler test and still leave an ordinary visitor with the shell, and it breaks silently when the rule changes.

A component marked as client-side in a framework such as Next.js is not automatically the culprit. Those components are usually still turned into HTML on the server for the first response, so judge by the fetched output, not by the label in the code.

What to change

The fix depends on the layer, but the principle is the same: the sentence has to be in the HTML the server sends. Vercel's advice, aimed at owners wanting their pages read by these bots, is to render the main content, meta information and navigation on the server, using server rendering, incremental regeneration or static generation, and to keep client-side rendering for extras such as counters, chat widgets and live feeds (Vercel).

In practice:

  1. For a shell with no rendering at all, add a build step or a framework mode that writes HTML for every route, not only the first.
  2. For a held-back component, remove the mounted-gate or the browser-only wrapper from the part that carries the text, and keep it for the interactive details.
  3. For partial pre-rendering, list every dynamic route in the build, then fetch one of them.
  4. For crawler-only HTML, serve the same content to everyone.

After each change, run the raw-fetch check again on two different routes. A fix that makes only the home page green leaves the rest empty.

Keep the rest of the picture straight

An empty first response is one reason an assistant knows nothing about you. Three others look similar and need different fixes.

A crawler may be refused before it sees anything, by your robots.txt or by a firewall. OpenAI documents its bots as separate tokens, for example one for search, one for training and one used when a person asks ChatGPT to visit a page, and a rule for one does not govern the others. It also says a rule may not apply to the user-triggered visit (OpenAI crawler documentation). Allowing a bot and rendering the text are separate jobs; you need both.

A missing page that returns a success status confuses crawlers in its own way, and why a missing page that says OK is trouble has its own explanation.

And an assistant can simply have an old copy. Fixing the HTML does not mean it re-reads the page right away, so it may go on answering from the older copy for a while.

Our skills for this topic

  • For the empty-first-response problem itself, find the layer that hides the text: you give it your files and the report, it names the layer and the change for your framework.
  • When a bot may be turned away before it sees anything, a reader for bot test results interprets request results sent with crawler user agents and says which kinds of bot get in, and why a refusal happened.
  • To set who may crawl what, a plain-words policy to robots.txt converts your rules into a correct file, including the group behaviour people usually get backwards.
  • A neighbour, llms-txt, drafts an llms.txt file from a list of your pages.
  • Another neighbour, soft-404-fix, traces a missing page answering with success.

When this does not apply

Our focus here is the first HTML response, so it will not help when your text is already in it and the assistant still ignores the site. Then look at access, at whether the page is indexed by the search service that the assistant uses, and at how fresh its copy is. What we say about crawlers rests on three public pages, cited in the text and read on 26 November 2026; Vercel's finding is a snapshot of the crawlers it observed, and vendors change what their bots do without announcement, so a bot that skips scripts today may run them later. We did not test any assistant against a sample of sites for this guide, and the browser look is a quick screening that can both miss problems and raise false alarms. A page that shows text with scripts off may still keep part of its content behind a sign-in or a cookie choice. Treat the raw fetch on two routes as the check, and the browser look as a hint.

Read this post as Markdown: /blog/disable-javascript-empty-page-ai.md · Atom feed.