The short answer: 0 of 60 script-rendered codes read
On 4 December 2026 we asked ChatGPT, Google AI Mode and Gemini to open 11 test pages and read back a code, 10 times for each of 11 hiding places. ChatGPT and AI Mode fetched the raw HTML and never ran a script: they read 0 of 60 codes that JavaScript put on the page, and requested no stylesheet, image or script in 220 answers. They read collapsed, CSS-hidden and noscript text, but never a code that lived only in JSON-LD or the meta description. Gemini never fetched the page at all.
Trigger
Why we ran it
Our 3 December study of AI crawler access counted the text on each homepage "before any JavaScript ran", on the assumption that AI fetchers don't run scripts. We had never tested that assumption, and it decides whether a single-page app shows an assistant anything at all.
So we built pages that hide a code in one place each, asked the assistants to read the code back, and logged every request they made to our server.
Method
How the test works
There are 11 test pages, one per hiding place. Each request carries a fresh run id, and the page shows a code built from a salted hash of that id, so every answer has its own code that no search index or earlier chat could hold. The visible text on every page also says where the code is placed, which makes a code easier to find once the fetcher has it, but can't produce a request the fetcher didn't make.
Every page also links a stylesheet, a 1x1 image and a script that requests a tracking image. If a fetcher renders the page like a browser, those requests show up in the log, whatever the model then says. The server logs time, user agent and request headers for each run id, and no IP addresses.
Each answer came from this prompt, sent to the logged-out consumer products through a paid third-party scraping API (cloro, bought through the treg marketplace), from a US location. A scraper drives the product's web interface, so we see what that session fetches; we can't confirm it matches a signed-in user's session, and that's the biggest caveat in this study.
Open this web page and tell me the verification code shown on it, exactly as written: https://nrlc.ai/lab/fetch-test/{variant}/?run={run_id}
The code looks like NRLC- followed by six characters. If you cannot open the page or cannot find a code, reply NOT FOUND. Do not guess.
That's 3 engines × 11 pages × 10 runs, in two back-to-back batches of 3 and 7 runs, all asked between 20:16 and 21:07 UTC on 4 December 2026. An answer counts as correct when it contains that run's expected code; the log, kept separately, tells us whether the page was fetched at all. Every answer, every log row and both scripts are public: answers.csv, fetch_log.csv, run.py, score.py and a README.
Result
The results table
| Where the code was | ChatGPT | Google AI Mode | Gemini |
|---|---|---|---|
| Plain text in the server HTML | 10/10 | 10/10 | 0/10 |
| Written in by an inline script | 0/10 | 0/10 | 0/10 |
| Loaded by a script with fetch() | 0/10 | 0/10 | 0/10 |
| Loaded by a script after 2.5 seconds | 0/10 | 0/10 | 0/10 |
| Only in JSON-LD | 0/10 | 0/10 | 0/10 |
| Only in the meta description | 0/10 | 0/10 | 0/10 |
| Inside a collapsed details element | 10/10 | 10/10 | 0/10 |
| In an element with display:none | 10/10 | 9/10 | 0/10 |
| Inside a noscript element | 10/10 | 9/10 | 0/10 |
| Inside an iframe | 10/10 | 0/10 | 0/10 |
| Only in an image's alt text | 9/10 (1 invented) | 7/10 | 0/10 |
The zeros and the tens are the findings. At 10 runs a cell, a gap like 9 against 7 is within noise, so we don't read anything into it. Text in the HTML body was mostly read, anything that needed a script or lived only in the head never was, and iframes split the two engines.
Finding 1
Does ChatGPT render JavaScript? Not in our test
Across 220 ChatGPT and AI Mode answers, the log shows 0 requests for the stylesheet, the image, the script's tracking image or the fetch() data. They downloaded the HTML, and ChatGPT also fetched an iframe's page when there was one, but neither ran a script. All three script variants scored zero: code written in by an inline script, code loaded with fetch(), and code loaded after a 2.5-second delay.
The HTML they received said "Verification code: (loading)", and 2 of AI Mode's 30 answers on the script pages said so. One of them, verbatim:
NOT FOUND — The verification code is not visible because it is loaded dynamically via a JavaScript fetch request after the page loads, and I cannot execute client-side JavaScript or access the live URL directly. If you copy and paste the rendered text from your browser (or share a screenshot of the loaded page), I can read the verification code for you.
If your product pages, pricing or docs render on the client, a user who pastes the URL into either assistant, through the route we tested, gets your loading state where the content should be. Server rendering only helps if the content is in the first HTML response; streaming setups can leave parts out, so check with curl, not a browser. What search crawlers index is a different question, which we didn't test here.
Finding 2
Can AI assistants read JSON-LD? Not in the head of a pasted page
The JSON-LD and meta description pages were fetched like the others; ChatGPT fetched 9 of its 10 JSON-LD pages. Neither engine reported a single code from the document head: 0/10 and 0/10 for JSON-LD, 0/10 and 0/10 for the meta description. The page body told them where to look.
The pattern fits a fetch step that keeps body text, hidden elements and alt attributes, and drops either the whole head or every script element, JSON-LD included. We put JSON-LD only in the head, so the test can't tell those two apart, and the logs can't show either. One AI Mode answer said much the same, for what a model's account is worth:
NOT FOUND — I cannot access the live URL directly, and the webpage content available to me does not include the HTML meta description tag where the verification code is located. If you'd like, you can copy and paste the page's HTML source code here, and I can extract the code for you.
This doesn't mean structured data is useless. Search indexing is a separate pipeline, and this test says nothing about it. It means a fact that exists only in head JSON-LD or a meta tag didn't reach these answers, so put the facts that matter in visible text too.
Finding 3
Hidden text gets read
Text a visitor can't see was read almost every time. ChatGPT read the code in a collapsed details element in 10/10 runs, in a display:none element in 10/10 and in a noscript block in 10/10. AI Mode scored 10/10, 9/10 and 9/10.
Image alt text also got through: 9/10 for ChatGPT and 7/10 for AI Mode, although neither requested the image. So a native details accordion doesn't hide anything from these readers; we didn't test tabs built with JavaScript, which depend on whether the text is in the HTML at all. The flip side: copy you've hidden but not removed is still in what the assistant gets. We only asked for one string, so we can't say how often stale hidden copy would surface in an open answer.
AI Mode's 5 misses on hidden text and alt text came with 7 to 22 fetches each, no different from its hits on the same pages. Each test page is generated from its run id alone, so every fetch in a run got the same HTML, and the misses happened after the fetch. We can't see which step dropped the code.
Finding 4
Does Google AI Mode read iframes? No; ChatGPT does
This is where the two split. ChatGPT read the iframe's code in 10/10 runs, and the log shows it requested the frame's own page 10 times. AI Mode scored 0/10 and requested the frame 0 times. One of its answers:
NOT FOUND The verification code is inaccessible because it is embedded inside an iframe that was not captured in the extracted webpage content, and the URL could not be directly opened. If you can copy and paste the text from inside the iframe or share a screenshot of the page, I can read the verification code for you.
We tested one same-site iframe. If AI Mode treats every frame this way, content you embed in one, a calculator or a booking widget, isn't part of what it reads from your page; we didn't test third-party frames.
The logs
Who actually fetched the page
| Engine | User agent seen | Page requests | Per answer | Scripts, CSS or images |
|---|---|---|---|---|
| ChatGPT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0; +https://openai.com/bot | 108, plus 10 for the iframe's page | median 1 | 0 |
| Google AI Mode | Google-Lens | 947 | median 8, up to 22 | 0 |
| Gemini | none | 0 | 0 | 0 |
ChatGPT made at most one page request per answer, plus one for the frame on the iframe page, with a browser-style Accept header (text/html,application/xhtml+xml,applicat…). It skipped the fetch in 2 of 110 answers, and in one of those it returned NRLC-ZXQCA3, a code that matches no run, despite "Do not guess". It came in the first batch and is the only invented code in all 330 answers. It's also why we check the log before believing a correct-looking reply.
AI Mode identified itself as Google-Lens, with an Accept header of */* and hit each page repeatedly. We didn't log IP addresses, so we can't confirm these requests came from Google's own ranges. If your bot rules block unknown agents, check that they don't block this one, and verify by IP rather than trusting the string.
AI Mode also gave a confusing account of its own access. 8 of its 110 answers said the URL couldn't be opened directly, often adding that it wasn't in the search index, while describing the "extracted" or "provided" page content in the same reply. The log shows Google-Lens fetched the page in 8 of those 8 runs. It looks like one step fetched the page and a second, failed browse attempt is what the model reported.
Gemini never requested anything in 110 answers and got 0 codes. It answered NOT FOUND, which is the honest reply. Through this route, Gemini didn't open pasted links; a signed-in session might.
How it evolved
What we dropped along the way
1.0, a two-page pilot. We started with the plain HTML page and the fetch() page on four engines, one run each. That caught a scoring bug: our script looked for the answer text in the wrong field of the scraper's response and crashed, so we fixed the parser before spending on the full run.
Perplexity, dropped. We tested it through Perplexity's own API, which only searches. It ran our URL as a search query, never requested the page, and the log stayed empty. The consumer app may fetch pages; this route can't tell us.
Claude, dropped. The only Claude route we had was the API with web search turned on. The model said, correctly, that it can search but can't open a URL, and our log stayed empty again. Copilot had no route at all, so the study covers three engines, not six.
2.0, three runs per cell, then ten. Three runs gave the same pattern, plus one invented code. We added seven more per cell before writing this, which surfaced the AI Mode misses on hidden text that three runs had hidden.
What we do now
What we do now
- Server-render anything you want quoted. 0 of 60 script-rendered codes got through. Prices, plan names, specs and policies belong in the HTML response, not in a client-side fetch.
- Put head-only facts in the body too. JSON-LD and meta descriptions scored zero for pasted URLs. Keep the markup, and repeat what matters in visible text.
- Audit what you hide. Collapsed, display:none and noscript text reached the answer in nearly every run. Delete stale copy rather than hiding it.
- Don't put key content in iframes. ChatGPT followed them; AI Mode didn't.
- Check your logs against the reply. One engine invented a code, and another said it couldn't open pages it had fetched. A model's account of what it read isn't evidence; a server log is.
The first rule has a cost: server rendering moves work to your servers and can mean a framework change. A cheaper option is to prerender only the public pages people are likely to paste, such as pricing, docs and product pages. We didn't test pages behind a login; the fetches we logged came from the engines' own servers, so they would not carry a user's session.
What did not work
Limits and what is next
This is one evening of logged-out sessions through a third-party scraper. Paid accounts, agent and browsing modes, and Gemini signed in may all fetch differently. Our prompt also told the model what format the code had, which helps it spot a code but can't make it fetch a page.
The test measures what reaches the answer when a user pastes a URL. It doesn't measure what search crawlers index, what training crawlers collect, or what an engine cites when it finds your page through search.
Next we want the routes we couldn't test, Copilot, Perplexity's app and the Claude app, and a rerun in a month to see whether any of this changes. The test pages stay up at /lab/fetch-test/, and the method in the README works with any client that can open a URL.
FAQ
Does ChatGPT render JavaScript when it opens a URL?
Not in our test. When asked to open a page, ChatGPT fetched the raw HTML once with the ChatGPT-User agent and never requested a stylesheet, image or script. It read 10/10 codes in plain HTML and 0/10 codes written in by an inline script. On the route we tested, content that only exists after JavaScript runs was invisible to it.
Can ChatGPT or Google AI Mode read JSON-LD?
They fetched pages that carried the code only in JSON-LD and never reported it: 0/10 for ChatGPT and 0/10 for AI Mode, even though the visible text said where the code was. So JSON-LD in the head did not reach the answer for a pasted URL. We did not test JSON-LD in the body, or what search indexing does with it.
Do AI assistants read hidden text?
Yes. ChatGPT read text hidden with display:none in 10/10 answers and AI Mode in 9/10. Both also read text in collapsed details elements and noscript blocks. What a visitor sees and what an assistant reads can differ, so keep hidden copy accurate.
Why did Gemini not read the page?
Our server logged no request from Gemini in 110 answers, so it never opened the URL. It answered NOT FOUND every time. We tested the logged-out consumer Gemini through a scraper; a signed-in account or a different Gemini surface may behave differently, and we did not test those.
NRLC.ai measures how AI engines answer questions about brands and tests page changes against those answers. The counts on this page are computed from the linked CSVs when it renders, so a corrected dataset updates the page.