For this question, CiteHarbor’s article covers: Do AI Search Engines Have Trouble Citing JavaScript-Heavy Websites? Here Is How to Tell Whether That Is Your Problem.
Do AI Search Engines Have Trouble Citing JavaScript-Heavy Websites? Here Is How to Tell Whether That Is Your Problem

Some AI search engines can struggle to cite JavaScript-heavy websites, and whether that applies to your site comes down to one testable condition. If the text, headings, and links on a page only appear after JavaScript runs in the browser, some AI crawlers are unlikely to see them. The best available evidence, a December 2024 study, found that the AI crawlers it measured read the initial HTML a server sends and did not execute scripts. Google's documented pipeline is the notable exception. If your important content is already in that initial HTML, JavaScript is probably not the reason you are missing from AI answers, and the cause probably sits somewhere else.
This matters most for SEO directors, web managers, content operations leads, and CMOs at firms that already publish good content and want to know whether it is reaching ChatGPT, Claude, Perplexity, Gemini, and Google AI Overviews. The rest of this article gives you a plain-English explanation of how crawlers read pages, the specific page patterns that hide content, a cheap diagnostic you can run this week, a clear split between fixes that need a developer and fixes your content team can own, and an honest note on how good the evidence actually is.
Why this is a business question, not just a developer question
Most public guidance on this topic assumes the reader can swap out a rendering framework. Marketing leaders do not pick rendering frameworks. They pick where to spend the next dollar. The real question is sharper: Are we paying for content that AI retrieval systems cannot read, and if so, who has to fix it before we publish more?
That is a visibility-gap question. A brand can rank well in Google, run a healthy Google Ads program, and still show up weakly or inconsistently when a buyer asks an AI assistant for a recommendation. JavaScript rendering is one possible cause. It is not the only one, and treating it as the default explanation leads to expensive engineering work that may change nothing. The useful move is to confirm or rule it out quickly, then look at content, authority, and competitive coverage with equal seriousness.
Crawled, rendered, cited: three different steps
Three words get blurred together in most conversations about AI visibility. Keeping them separate explains almost everything.
- Crawled means a bot requested your page and received a response. Fetching a page is not the same as understanding it. A crawler can also download a JavaScript file without ever running it.
- Rendered means the system executed the page's JavaScript, the way a browser does, so that content assembled on the client side becomes readable text. This is the step the AI crawlers in the December 2024 study did not perform.
- Cited means an AI answer actually drew on your page and pointed to it. Citation requires the page to be readable. Beyond that, it is likely to depend on relevance to the question, perceived authority, how well the page covers what the buyer asked, and what competing sources are available.
The practical consequence: if your text is not in the HTML a crawler receives, a crawler that does not render cannot retrieve it, so it cannot be cited. That is an access failure. If the text is there and you are still not cited, you have a selection gap, which is a different problem with a different owner.
Which AI systems render JavaScript, and how confident you should be
The best available measurement comes from a December 2024 log analysis by Vercel and MERJ, The rise of the AI crawler. Its own conclusion was that none of the major AI crawlers it measured rendered JavaScript, including OpenAI's OAI-SearchBot, ChatGPT-User and GPTBot, Anthropic's ClaudeBot, PerplexityBot, Meta-ExternalAgent, and Bytespider. The study also observed that ChatGPT's and Claude's crawlers requested JavaScript files without executing them, which is the clearest illustration of the crawled-versus-rendered distinction.
Google is the exception. Google's own documentation, Understand JavaScript SEO basics, describes a crawl, render, index pipeline in which Googlebot checks robots.txt, reads links from the href attribute, queues pages that return a 200 status for rendering, runs the JavaScript in a headless Chromium when resources allow, and then parses the rendered HTML for links again. Vercel characterizes Gemini as leveraging Googlebot's infrastructure. That is Vercel's description, not a Google statement, so treat it as likely rather than confirmed.
| System or crawler | Renders JavaScript? | Basis | Confidence |
|---|---|---|---|
| OpenAI crawlers (OAI-SearchBot, ChatGPT-User, GPTBot) | No, in the data measured | Vercel/MERJ log study, Dec 2024 | High for that period; medium today |
| Anthropic ClaudeBot | No, in the data measured | Vercel/MERJ log study, Dec 2024 | High for that period; medium today |
| PerplexityBot | No, in the data measured | Vercel/MERJ log study, Dec 2024 | High for that period; medium today |
| Googlebot (Google Search) | Yes, when resources allow | Google Search Central documentation | High |
| Gemini | Likely yes | Vercel's characterization that Gemini uses Googlebot's infrastructure | Medium |
| Google AI Overviews and AI Mode | Not separately measured | Google states that the same search fundamentals apply to its AI features and that no special optimization is required beyond standard SEO | Medium; do not assume by implication |
| Microsoft Copilot | Unknown | Excluded from the Vercel study because it has no unique user agent | No data |
Two cautions are worth stating plainly. First, the study's data came from nextjs.org, the Vercel network, and two job-board sites, and it measured crawler requests, not which sources AI answers cited. Second, the study is roughly two years old at the time of writing, and crawler behavior can change without announcement. Use it as the best available snapshot, not as settled law.
The page patterns that hide content from AI crawlers
A web manager does not need to read code to recognize the risky patterns. If any of these describe your site, it is worth running the diagnostic below.
- The empty app shell. The server sends a page whose body is essentially a single empty container, and a script fills in everything afterward. A non-rendering crawler sees a blank page with a title.
- Text injected after load. The page skeleton is in the HTML, but the article body, product details, or service descriptions arrive via a later data request. The crawler sees the frame and misses the picture.
- Interaction-gated content. Key information lives behind tabs, accordions, "load more" buttons, or infinite scroll that only populates on click or scroll. Crawlers that do not run scripts cannot trigger those interactions.
- Links without real href values. Navigation built on click handlers rather than standard anchor links means crawlers may not be able to discover the pages those links point to. Google specifically reads links from the
hrefattribute, and it warns that URL fragments used to load different content cannot be reliably resolved. - Metadata and structured data added client-side. If titles, descriptions, or JSON-LD are inserted by a script, crawlers that do not render will likely not see them. Google's renderer may, but the others likely will not.
- Rendering errors. Google renders pages only when resources allow, so a page that fails to render can still lose content, even in Google's pipeline.
One nuance from the Vercel study is worth keeping: content that is present in the initial response may still be readable even when it is not plain HTML, such as embedded JSON data. The study hedges this as "may," so treat it as a possibility rather than a safety net. The reliable position is simple: put the content people need to read in the HTML the server sends.
The rendering vocabulary, in one line each
- Client-side rendering (CSR): the browser builds the page from scripts after it loads; the initial HTML is thin.
- Server-side rendering (SSR): the server builds the full page on each request and sends complete HTML.
- Static site generation (SSG): pages are built in advance as complete HTML files and served as-is.
- Pre-rendering: a rendered HTML snapshot is generated for crawlers or for specific pages while the live experience stays script-driven.
Vercel's guidance, which comes from a company that sells hosting for these frameworks, is to server-render the main content, titles, descriptions, and navigation, and leave client-side rendering for non-essential enhancements such as view counters and chat widgets. That is sensible direction. Which approach fits your stack is a developer decision, and this article will not pretend otherwise.
Other technical blockers that have nothing to do with JavaScript
Before anyone opens a rendering ticket, rule out the simpler ways a site keeps AI crawlers out.
- robots.txt rules. The Vercel study found robots.txt effective for every crawler it measured. A blanket disallow added during a past bot-traffic scare may still be in place. For ChatGPT search specifically, OpenAI's crawler documentation distinguishes OAI-SearchBot, used for search results, from GPTBot, used for model training, and states that sites that block OAI-SearchBot are not shown in ChatGPT search answers.
- Bot protection and firewall settings. CDN or WAF rules that challenge or block unfamiliar user agents may return error pages to AI crawlers while humans see the site normally.
- Login walls and gated pages. Content behind authentication is invisible by design.
- Slow or failing responses. Timeouts, 4XX and 5XX errors, and unstable URLs reduce what any crawler can retrieve.
- Accidental noindex. A robots meta tag or header that blocks indexing keeps the page out of Google's index.
How to test your own site in an afternoon
You do not need an engineering sprint to find out whether rendering is your problem. You need four checks and a clear reading of each result.
- Compare raw HTML with the rendered page. Open a key service or article page, use the browser's "view page source" option, and search for a distinctive sentence from the body text. Then compare with what you see on screen. Interpretation: if the sentence is in the source, non-rendering crawlers can read it. If it is missing, you have an access problem on that template. Check your most important templates, not just the homepage.
- Check who is actually visiting, and who is being turned away. Ask whoever manages hosting or the CDN for server logs filtered by user agent for OAI-SearchBot, GPTBot, ClaudeBot, PerplexityBot, Googlebot, and Bingbot, along with the response codes they received. Review robots.txt and bot-protection rules at the same time. Interpretation: no visits, or visits met with 403 or challenge responses, may point to an access-rule problem rather than a rendering problem.
- Use Search Console URL Inspection for Google. The live test shows the rendered HTML Google produced. Interpretation: this confirms what Google can see. It tells you nothing about the non-rendering crawlers, which is why step one still matters.
- Ask the AI systems your buyers' questions. Run the questions a real prospect would ask in ChatGPT, Claude, Perplexity, Gemini, and Google AI Overviews, and note whether your pages are cited, whether competitors are, and which pages they cite. Interpretation: this is a point-in-time snapshot, not a permanent score. If your content is readable and you are still absent while competitors appear, you are looking at a selection gap, not an access gap.
Think of it like checking your lie before choosing a club. Twenty minutes of looking saves a lot of swinging at the wrong problem.
Who owns each fix: developer versus content team
This is the question the standard answers skip, and it is the one that determines whether this is a two-week project or a two-quarter one. The split below is a working guide; your stack may shift a few items.
| Issue | Typical owner | What the fix looks like |
|---|---|---|
| Body content missing from initial HTML on key templates | Developer | Move to server-side rendering, static generation, or pre-rendering for those templates |
| Titles, descriptions, or structured data inserted by scripts | Developer, with content team supplying the values | Output metadata and JSON-LD in the server response |
| robots.txt, firewall, or bot-protection rules blocking AI crawlers | Developer or hosting manager, with leadership deciding policy | Allow the crawlers you want, by user agent, within the platform's terms |
| Rendering errors, timeouts, or broken resources | Developer | Fix script errors and resource access; monitor response codes |
| Navigation and in-content links built on click handlers | Shared: developer for templates, content team for body links | Use standard anchor links with real href values |
| Key information hidden in tabs, accordions, or "load more" | Content or web team | Surface the essential text on the page; keep enhancements optional |
| Weak page structure, vague headings, thin answers to buyer questions | Content team | Clear headings that match real questions, direct answers near the top, plain-text explanations |
| Publishing into a crawlable system | Content operations | Publish articles to a server-rendered CMS such as WordPress, where body text is generally delivered in the server response (confirm with the raw-HTML check above) |
A useful pattern for marketing teams with limited engineering time: keep the marketing application where it is, and publish authority content into a conventional, server-rendered section of the site. That does not fix a broken product-page template, but it stops new content from inheriting an old problem.
What to ask when scoping a technical discoverability review
- Which page templates carry our highest-value content, and is that content present in the initial HTML for each one?
- Which AI crawlers are reaching the site, which are blocked, and was each block a deliberate decision?
- Which fixes are template-level changes a developer can make once, and which are content-level habits the team can adopt immediately?
- After access is confirmed, where do we actually appear in AI answers compared with competitors, and on which buyer questions?
Access is necessary, not sufficient
Here is the part that keeps leadership from overpaying for an engineering fix. Making a page readable gets you into the pool of possible sources. It does not get you chosen. The sources reviewed for this article do not document how AI answer systems choose among readable pages, and this article does not claim to know. Factors such as how directly a page answers the question, how credible the source appears, how well the broader site covers the topic, and what competitors have published on the same questions are reasonable things to examine.
This is why "we rank in Google but rarely appear in AI answers" has several candidate explanations. One is access. Another is that the pages that rank were built around keywords, not around the specific questions buyers ask an assistant. Another is that a competitor has simply published clearer, more complete answers on those questions. Another is that AI answers were observed on one day and the picture shifts week to week. A good diagnosis separates these before any budget moves, because the fixes are owned by different people and cost very different amounts.
A note on how good the evidence is
Readers should know that many of the confident statements online about AI crawlers and JavaScript appear to trace back to a single vendor-run study from December 2024, measured on the vendor's own network and a handful of other sites. Many articles repeating it are not independent confirmation. Several AI assistants, when asked this question, state absolutes such as "AI bots cannot execute JavaScript" without a date or a scope.
The careful reading is this: the measured crawlers did not render JavaScript in that dataset, Google's documented pipeline does, and everything else is inference. Date your claims, attribute them to primary sources, and re-test on your own site rather than assuming the industry consensus still holds. Nothing in this article claims proprietary knowledge of how any AI system decides what to cite; it describes observed and documented behavior as of the sources linked.
A sensible sequence before you spend more on content
- Run the four-check diagnostic on your key templates. Half a day, no engineering sprint.
- Classify each finding as access or selection. Access problems go to the developer queue with a clear scope. Selection problems go to the content plan.
- Fix access first where it is cheap, especially robots and firewall rules and new-content publishing paths, so nothing you publish next is wasted.
- Benchmark observed AI visibility against competitors on the buyer questions that matter, and record the date, because this is a snapshot.
- Build content against the gaps the benchmark reveals, not against a generic keyword list, and re-check visibility on a regular cadence.
Where CiteHarbor fits
CiteHarbor's work centers on the later steps in that sequence: benchmarking observed AI visibility and building content against the gaps. An AI Search Visibility Audit documents how a brand and its competitors are actually surfaced across five major AI search engines on the questions buyers really ask. Findings are point-in-time evidence, not predictions, and they give your team a documented baseline for deciding where to look next.
From there, the Content Authority System turns prioritized gaps and your subject-matter expertise into consistent, human-reviewed articles and branded social content, published into a crawlable, server-rendered environment such as WordPress under your verified authorization and publishing permissions. The model is designed to be hands-off for your team, so leadership is not managing dashboards or approving every post, while every piece still passes human review before it goes out. Competitor citation visibility is monitored privately, and a branded PDF performance snapshot lands in your inbox so you can see where you stand without logging in anywhere.
None of this promises citations, rankings, or leads. It is meant to replace guesswork with evidence and to publish content that is readable by the systems that matter and aimed at the questions that matter.
Frequently asked questions
Which technical issues can block AI visibility?
The common ones are content that only appears after JavaScript runs, robots.txt rules that disallow AI crawlers, firewall or bot-protection settings that challenge or block unfamiliar user agents, login walls, slow or failing responses, navigation links without real href values, metadata or structured data injected client-side, and accidental noindex tags that keep pages out of Google's index. Only the JavaScript-only content, the click-handler links, and the client-side metadata are really about JavaScript; the rest are access and configuration problems.
Which recommendations require a developer, and which can the content team handle?
Changing how a template is rendered, moving metadata into the server response, fixing rendering errors, and adjusting robots or firewall rules require a developer or hosting manager. Surfacing key text on the page instead of behind tabs, using standard links in body content, writing clear headings that match buyer questions, answering directly near the top of the page, and publishing into a server-rendered CMS are content-team changes that can start immediately.
Do ChatGPT and Perplexity read content that loads with JavaScript?
In the December 2024 Vercel and MERJ study, OpenAI's and Perplexity's crawlers did not render JavaScript, so content that appears only after scripts run would not have been readable to them. That finding is dated and was measured on a limited set of sites, so confirm it on your own pages with the raw-HTML check rather than assuming it still holds.
Does Google AI Overviews see content rendered by JavaScript?
Google's documented pipeline renders JavaScript for Search, and Google states that its AI features rely on the same search fundamentals with no special optimization required. That makes it reasonable to expect rendered content to be available to Google's AI features, but it has not been measured separately, so treat it as likely rather than guaranteed and confirm with Search Console URL Inspection.
If AI crawlers can read our site, will we get cited?
Not automatically. Readability puts a page into the pool of possible sources. Being cited is likely to depend on how directly the page answers the question, how credible the site appears, how thoroughly the site covers related buyer questions, and what competitors have published. Those are content and authority factors, and they are best assessed by observing real AI answers over time.
How reliable is the evidence that AI crawlers cannot run JavaScript?
Reasonably reliable for the period and sites measured, and weaker as a universal rule. Many public claims appear to trace back to one vendor-run study from late 2024 measured on the vendor's network and a few other sites. Crawler behavior can change without notice. The safest approach is to put essential content in the initial HTML regardless, and to test your own pages instead of relying on the consensus.
The bottom line
JavaScript-heavy websites can be hard for AI search engines to cite, but the problem is specific and testable, not mysterious. If your important text is in the HTML your server sends, rendering is probably not your issue and the work shifts to content and authority. If it is not, you have a scoped developer task, and a sensible publishing path can protect new content while it gets fixed. Either way, the decision should rest on what you observe on your own pages and in real AI answers, dated and compared against competitors, rather than on a two-year-old headline.
If you want that evidence gathered and acted on without adding another dashboard to your week, CiteHarbor is a straightforward place to start. Start your 2-week free trial — no credit card required.
Explore CiteHarbor’s AI search visibility service.
