Can ChatGPT and Claude read text that only JavaScript writes?

Note · December 3, 2026 · Kei Watanabe

Text written only by JavaScript. Neither assistant read it: ChatGPT 0 of 3, Claude 0 of 3.

We put a code word on a page that appears only after the page's script runs, and asked each assistant to read it. Neither could, 0 times of 3 each. Both read the placeholder instead.

Hi, I'm Kei. I run glasp.co. Every week I show one thing our own analytics and server logs say about AI search, what it does and does not prove, and how you can check the same thing on your site.

The question

Many sites build their pages in the browser: the server sends an almost empty page and a script fills it in. A person sees the finished page. What does an assistant see when someone asks it to open that page?

How we tested it

Each test page holds a code word that exists nowhere else. On these pages the code word is not in the page the server sends. The page holds a placeholder, "(not loaded: JavaScript did not run)", and a short script on the page replaces it with the code word. Open the page in a browser and you see the code word. Look at the page source and you see the placeholder, and the code word only in pieces inside the script, joined when it runs. The page also says, in plain text, that the code word is written by JavaScript.

We asked each assistant in a new chat: "Please open this URL and tell me the code word written on the page." One page per ask, three pages per assistant, on November 30, 2026, in the web apps: ChatGPT on a free account in temporary chats, Claude in incognito chats. Our server log shows which fetcher came and what it requested.

What happened

AssistantGave the code wordWhat it said instead
ChatGPT0 of 3reported the placeholder text
Claude0 of 3reported the placeholder and explained why

Claude put it plainly: "The page fills it in with JavaScript, and my page fetcher doesn't run JavaScript, so it only shows a placeholder."

The log agrees. ChatGPT-User and Claude-User each fetched every page once, with a normal 200 answer, and neither asked for the site's other script that the page loads. They took the page as the server sent it and stopped there. Neither pieced the code word together from the script either, though the pieces were in the text it received.

A paper from November 2026 (Chen and others, "Fetch, Read, Reuse", arXiv 2611.30546) reports the same for the APIs of OpenAI, Anthropic and xAI. This test adds the consumer apps people actually use.

What to do with it

  1. Look at what your server sends, not at what your browser shows. Open the page source (not the inspector, which shows the page after scripts ran), or fetch the page with a command-line tool, and search for the sentence you want quoted. If it is not there, an assistant asked to open that page will not see it.
  2. Put the text that matters in the first answer. Prices, product names, the definition, the answer to the question your page is about. Server-side rendering or a static build does this; most frameworks offer one.
  3. Treat a loading message as what gets quoted. If your page says "Loading..." until a script runs, that is the text an assistant reads.
  4. Search crawlers are a different question. Google says it renders JavaScript when it indexes. This test is about an assistant opening a page because a person asked, which is when your page gets quoted with your name on it.

What this does not show

Get the next note by email. One measurement a week from our own logs, with the method to repeat it.
Subscribe, free