[The Engines]
How to Ensure Your JavaScript Content is Read by AI Models
A 20 October 2026 test found a split in how major AI products read JavaScript-rendered pages. Teams seeking citations should make their main editorial content available before client-side JavaScript runs.
Explore this article with AI
Open a source-aware analysis with this article as the primary source.The short answer
Put your main JavaScript content in the initial HTML through server-side rendering or prerendering. A test published on 20 October 2026 found Gemini and Copilot read three JavaScript-rendered sites, while ChatGPT, Claude and Perplexity failed to read the tested dynamic content. Treat this as a current test result, then verify your own URLs because retrieval behavior can change.
What changed in how AI models read JavaScript content?
A published test has exposed a meaningful split: Gemini and Copilot read the JavaScript-rendered content in three tested sites, while ChatGPT, Claude and Perplexity did not. The result matters because a page can look complete in a visitor's browser yet expose little more than navigation, boilerplate, or an empty application shell to a retriever that only reads the initial response.
Masters of Search reported on 20 October 2026 that Glenn Gabe tested five chat products against three sites with different client-rendering patterns. The test included a fully client-rendered site, a site whose main content loaded through JavaScript, and a site that revealed content after scrolling or other events. Gemini read all three. Copilot read all three. ChatGPT, Claude, and Perplexity failed on every tested site.
That is a before-and-after problem for editorial teams. The old assumption was that a page that renders in a modern browser has published its content. The current evidence says that assumption is unsafe when the goal is citation across several AI answer surfaces. A page can be live, indexable in some search contexts, and still be unreadable to an AI model that retrieves only the raw HTML.
The finding does not establish a permanent product rule. It is a dated snapshot of five products under one test design. It does establish a practical publishing rule: treat rendered browser output and retriever-visible HTML as separate artifacts until you have tested both. Citation Engineering starts with making the evidence available to the system expected to cite it.
Who does this JavaScript content gap affect?
The gap affects publishers whose primary copy appears only after the browser runs JavaScript. That includes sites built with client-side frameworks, pages that fetch the article body after load, comparison tools whose evidence appears only after interaction, and infinite-scroll templates that hide core text behind an event.
B2B SaaS teams are exposed when category pages, integration pages, help content, and comparison pages rely on a client-rendered application shell. A buyer asking an AI system for the best tool, a has comparison, or an implementation answer may receive a response grounded in competitors whose source content was visible in the initial HTML. Your page can be absent from the available evidence before its expertise is evaluated.
Local and service businesses face a similar issue when service descriptions, locations, review summaries, or booking-critical details load only after JavaScript. A model cannot cite the detail it does not retrieve. That can reduce Answer Presence, the breadth of questions in which a business appears, even when the live page works for human visitors.
The problem also affects teams that use JavaScript only for presentation. A page may have a clean URL, a valid title, a sitemap entry, and strong design, yet its factual copy can still be missing from the initial response. The affected unit is not the framework name. It is the content path: can a retriever receive the heading, explanation, data, and source links without waiting for browser execution or a user event?
This is not an argument to remove JavaScript from every site. JavaScript can support interaction, personalization, navigation, and interface behavior. The exposure begins when the only copy that answers the page's central question depends on it. Keep the citable substance available before enhancement.
| Tested product | Result across three JavaScript-rendered sites | What to do |
|---|---|---|
| Gemini | Read all three tested sites | Keep core content in initial HTML, then test your own priority URLs. |
| Copilot | Read all three tested sites | Keep core content in initial HTML, then test your own priority URLs. |
| ChatGPT | Failed on every tested site | Use server-side rendering or prerendering for main editorial content. |
| Claude | Failed on every tested site | Use server-side rendering or prerendering for main editorial content. |
| Perplexity | Failed on every tested site | Use server-side rendering or prerendering for main editorial content. |
Why do Gemini and Copilot appear to handle JavaScript differently?
The reported split appears to track the search crawlers behind the products. Masters of Search connected Gemini with Googlebot and Copilot with Bingbot, both of which already render JavaScript for web search. That makes their successful results plausible, but it does not prove that each product always uses the same crawler, rendering path, or retrieval system for every answer.
Google documents that Googlebot can queue pages for rendering, use headless Chromium to execute JavaScript, then use rendered HTML for indexing. Google also explains that an app-shell page may have no actual content in its initial HTML, which requires JavaScript execution before the content becomes visible. This is a search-crawling capability, not a guarantee that every AI answer system will render every page in the same way.
Google's documentation gives the stronger operational lesson: server-side rendering or prerendering remains useful because it makes websites faster for users and crawlers, and not all bots can run JavaScript. That advice has new weight when teams care about AI citations alongside search visibility.
Avoid turning the test into a claim that one model category is universally capable and another is permanently blind. AI retrieval routes change. Model answers may draw from a search index, a fetched page, cached material, or a different process. What the evidence supports is narrower and more useful: in this October 2026 test, JavaScript-only content was reliably available to two tested products and unavailable to three others.
A citation strategy cannot depend on assumptions about a retriever's rendering budget. Publish the essential evidence in a form that does not require the retriever to make the favorable choice.
How should you test whether AI models can read your JavaScript content?
Test the exact pages you want cited by comparing the raw HTML with the content a model can quote or summarize. Start with pages that answer high-intent questions, such as category pages, comparison pages, product documentation, location pages, and original research. Do not use the homepage as a substitute for the pages that carry the actual claim.
First, fetch the page without browser rendering and inspect the response. Confirm that the H1, central answer, source links, table text, and conclusion appear in the returned HTML. If the raw response contains only a root element, loading indicator, navigation shell, or generic metadata, record that as a publishing issue even if the browser view looks correct.
Next, ask each target model to summarize a specific detail that appears only in the main body. Use a detail that can be checked, such as a table row, a source name, or a distinctive sentence. Ask the same question across ChatGPT, Claude, Perplexity, Gemini, and Copilot if those surfaces matter to your audience. Save the exact prompt, URL, date, model surface, answer, and whether the response quoted the requested material.
Run a second test after a hard page refresh and from a page that has not been recently changed. Fresh browser sessions reduce the chance that your own prior interaction masks an event-triggered loading problem. If the content requires scrolling, clicking a tab, accepting a modal, signing in, or choosing a filter, test those conditions separately.
Repeat the test after deployment. This is a release check, not a one-time audit. A framework upgrade, consent layer, tag-manager change, CDN rule, or content migration can move critical copy out of the HTML without changing what a human editor sees in the browser.
What should you change if AI models cannot read your content?
Move the page's core editorial content into the initial HTML through server-side rendering or prerendering. The core includes the direct answer, H1 and subheads, explanatory copy, data tables, citations, source links, and the FAQ text. Keep JavaScript for interaction after that content is available.
Server-side rendering generates page HTML on the server for the request. Prerendering generates HTML ahead of time, commonly during a build or publishing step. The appropriate route depends on how often the page changes, how personalized it is, and how the existing application is built. Both approaches can give a retriever readable content without requiring it to execute the client application.
Do not solve the issue by placing a short keyword block in the page source while leaving the evidence behind an interactive component. A citable page needs the factual explanation and sources, not merely a heading. If a comparison table carries the answer, publish a semantic HTML table or an accessible text equivalent. If a chart carries the claim, publish its values and source in nearby text.
Do not use different substantive copy for crawlers and visitors. The goal is consistency: the same main answer should be available in the server response and rendered page. Differences created by user location, inventory, consent, or personalization need careful handling so the visible page still has a stable, cited core.
After the change, retest the raw HTML, a browser-rendered view, and the relevant AI products. Record the result in your content operations workflow alongside Citation Share, rather than treating technical renderability as a separate engineering concern.
What does the before-and-after test mean for editorial teams?
The before state is a JavaScript-dependent publishing path in which main content may exist only after client execution or interaction. In the 20 October 2026 test reported by Masters of Search, that state worked for Gemini and Copilot across three test sites but failed for ChatGPT, Claude, and Perplexity. The after state is a page whose same editorial content is present in the initial HTML and can be read without client execution.
This is a coverage issue before it becomes a writing issue. An excellent explainer cannot earn a citation from a model that never receives its supporting paragraphs, figures, and links. A technically readable source gives the editorial work a chance to compete on clarity, freshness, coverage, and evidence.
Use the test result to prioritize repairs. Start where a missing citation would carry the highest cost: pages that explain the category, pages that compare named alternatives, product documentation that answers buyer questions, and pages that contain original data. The next tier is archive content that still attracts search demand or supports internal links.
The repair should also make the page easier to inspect. Editors should be able to view source and find the page's central answer. Developers should be able to test the response in deployment checks. Content teams should be able to map a citation back to a stable paragraph and source link. This reduces the gap between what was written, what was published, and what a model can retrieve.
The immediate action is simple: select five priority URLs, inspect their initial HTML, then run the same evidence prompt across the AI products that matter to your category. Fix the pages that fail before commissioning more content on an inaccessible template.
How can you keep JavaScript content readable as AI retrieval changes?
Keep JavaScript content readable by making raw HTML checks part of publishing and release QA. The test result is time-bound, but the safeguard is durable: if the core answer and evidence arrive in the initial response, your page depends less on a model's rendering behavior.
Add a content-visible check to every new template. The check should confirm that the raw response contains the page title, H1, first answer paragraph, primary table or data asset, source links, and FAQ content. It should also confirm that these elements remain visible after client rendering. A page that passes only one side of that comparison is not ready for broad citation goals.
Monitor more than one engine. Search visibility does not prove AI answer visibility, and a citation in one product does not prove broad coverage. Review the question universe that matters to your audience, then measure where the brand appears and where competitors appear. That is the practical basis for Citation Share and Share of Voice.
Keep the editorial source chain intact. Static HTML should preserve the attribution, publication date, data labels, and outbound source links that make a page trustworthy. A retriever needs content it can access, while a reader needs evidence they can check. Those are aligned requirements.
Re-run the same controlled test when a major model changes its web feature, when your rendering architecture changes, or when your citation performance shifts unexpectedly. The dependable strategy is to publish evidence that remains visible without asking the retriever to execute your application first.
Key takeaways
- A browser-complete page can still expose little useful content to an AI retriever.
- The reported 20 October 2026 test found Gemini and Copilot read three JavaScript-rendered sites.
- ChatGPT, Claude, and Perplexity failed to read the tested dynamic content in that test.
- Server-side rendering or prerendering should expose the answer, evidence, and source links in initial HTML.
- Test raw HTML and model responses on the exact URLs you want cited.
- Repeat the test after template, framework, CDN, or publishing changes.
Omnicite Editorial. "JavaScript Content and AI Models" The Citation Report, Omnicite. https://omnicite.co/blog/how-to-ensure-your-javascript-content-is-read-by/
Sources
Source: Masters of Search
A test of five chat products across three JavaScript-rendered sites found Gemini and Copilot read all three, while ChatGPT, Claude, and Perplexity failed on every test. Masters of Search, 2026-10-20
Source: Google Search Central
Googlebot queues pages for rendering, executes JavaScript with headless Chromium, and Google advises server-side rendering or prerendering because not all bots can run JavaScript. Google Search Central, 2026-03-04
Frequently asked questions
Can AI models read JavaScript-rendered content?
Some can in some conditions. A 20 October 2026 test reported that Gemini and Copilot read three JavaScript-rendered sites, while ChatGPT, Claude, and Perplexity did not read the tested dynamic content. Test your own URLs because the result is time-bound.
Should I remove JavaScript from my website for AI visibility?
No. Keep JavaScript for interaction where it helps users. Make the page's central answer, evidence, source links, and FAQ content available in initial HTML so a retriever does not need client execution to access them.
What is the safest way to publish JavaScript content for AI citations?
Use server-side rendering or prerendering for the main editorial content. Google states that server-side or prerendering is useful because it helps users and crawlers, and not all bots can run JavaScript.
How do I know whether my article content is in the initial HTML?
Fetch or view the page source without relying on the rendered browser view. Search the response for the H1, main answer paragraph, table text, source links, and FAQ. If those elements are absent, the content likely depends on JavaScript.
Does Google rendering JavaScript mean every AI answer system will do the same?
No. Google documents Googlebot's JavaScript rendering process, but that does not guarantee that another AI product will use the same rendering path for each answer. Publish core content in HTML and verify the systems that matter to your audience.
What pages should I fix first?
Start with high-intent pages where citations affect buying decisions: category pages, comparison pages, product documentation, original research, and location or service pages. Test the exact URLs and repair the templates that hide their core content.