AI Visibility Tracker blog

Client-Side Rendering and AI Visibility: A Repeatable Test for CSR Sites

Client-side rendering can limit what AI systems retrieve, but the only useful diagnosis combines raw-HTML checks with repeated, prompt-level visibility tests across answer engines.

· 14 min read

A four-page controlled experiment put made-up facts in HTML, JavaScript files, and JSON hydration data; all five tested tools read the HTML facts, while only the ChatGPT app consistently found facts available only after JavaScript execution. That makes client-side rendering AI visibility a measurable technical and brand-discovery issue: we need to know what a crawler can access, then verify whether that access produces mentions, citations, and share of answer in real buyer prompts.

CSR means client-side rendering, not corporate social responsibility. In a CSR app, the server may initially return a thin HTML shell such as a root <div>, and the visitor’s browser downloads JavaScript to assemble the meaningful page content. That can work well for users while creating a retrieval gap for systems that inspect only the initial response.

The Reddit experiment that prompted this discussion is useful because its facts were deliberately invented: a mascot, town, and price that did not exist elsewhere on the web. But it should not be treated as a universal verdict on every crawler, framework, or retrieval pathway. The responsible conclusion is narrower: test the specific rendering path, bot access, and answer engines that matter to your brand. (developers.openai.com)

Why client-side rendering AI visibility is not a simple yes-or-no question

A page can be visible to Google Search and still be difficult for another AI retrieval system to use. Google documents a three-stage process of crawling, rendering, and indexing for JavaScript applications, using an evergreen Chromium renderer. That is a very different capability from assuming GPTBot, OAI-SearchBot, ClaudeBot, or PerplexityBot will all fetch scripts, execute them, wait for data, and extract the final DOM in the same way. (developers.google.com)

The original test separated content delivery into four variants:

  1. Facts placed directly in the HTML response, as with SSR or a static page.
  2. Facts placed only in a JavaScript file, as with a basic CSR implementation.
  3. Facts placed in JavaScript but obscured or scrambled.
  4. Facts placed only inside a JSON block in the HTML.

The reported result was not “AI never reads JavaScript.” It was that four of the five tested tools returned the thin page and footer for JavaScript-only or JSON-only facts, while the ChatGPT app made an additional request roughly 12 seconds later on JavaScript pages and recovered the content. The author later corrected an overbroad description of Next.js: ordinary Next.js server rendering puts page content in the HTML, whereas the test’s JSON-only page was intentionally not representative of all Next.js implementations.

That correction matters. “Built with Next.js,” “React,” or “a SPA” does not tell us what a crawler receives. A Next.js App Router route can server-render content; a client component can defer it; a Suspense boundary can initially expose a loading fallback; and a static export can differ from the live response. The implementation and response are what count.

Separate direct URL fetching from AI search citations

Several readers raised the most important methodological limitation: handing an assistant a URL and asking it to read the page is not the same as asking a broad buyer question and receiving a cited search answer. Those flows may use different user agents, indexes, caches, retrieval systems, and timing.

OpenAI itself distinguishes these roles. OAI-SearchBot is the crawler OpenAI identifies as being used to surface sites in ChatGPT search features. GPTBot is documented separately for crawling content that may be used to improve generative AI foundation models. OpenAI also describes user-triggered activity separately from its search crawler, so a successful direct inspection by a ChatGPT product should not be assumed to prove that the page is indexed and eligible for a normal ChatGPT search citation. (developers.openai.com)

Perplexity makes a similar distinction in its crawler documentation. PerplexityBot is described as the bot used to surface and link websites in its search results, and the company says robots.txt changes can take up to 24 hours to reflect. (docs.perplexity.ai)

For practical measurement, we treat these as two separate questions:

  • Crawlability question: Can the named crawler reach the URL, receive a 200 response, and find the priority text in the initial HTML?
  • Answer visibility question: When we run a realistic prompt set in ChatGPT, Claude, Gemini, Perplexity, and Grok, does the engine mention or cite the brand—and which competitors does it name instead?

Passing the first test is necessary technical hygiene. It is not a promise that the second test will produce a citation.

The controlled CSR versus SSR experiment we recommend

Do not begin by changing an entire React or Next.js stack. Build a small test where the factual content is controlled and the pages are matched. The Reddit post’s use of invented facts is the right model because it reduces the chance that the assistant can answer from pre-existing web documents, training data, or a similarly named company.

Build matched pages with one variable changed

Create two publicly reachable URLs on the same host:

  • CSR page: The key claim, product detail, or invented marker loads only after JavaScript runs.
  • SSR, SSG, or prerendered page: The identical claim appears as visible text in the original HTML response.

Use a distinct marker such as “Northstar Plan includes 17 export credits” rather than a generic claim like “fast reporting.” Generic language can appear in documentation, cached snippets, or other pages. A unique marker makes a retrieval result interpretable.

Keep the following constant: title tag, URL pattern, internal links, robots directives, canonical tag, schema, hosting environment, and copy length. If you change five conditions together, you cannot attribute a result to rendering.

Record the technical conditions before the prompt test

For each URL, log:

CheckCSR test URLServer-rendered comparison URL
HTTP statusRecord 200, 3xx, or 4xxRecord 200, 3xx, or 4xx
Initial HTML contains markerYes/noYes/no
JavaScript required for markerYes/noYes/no
robots.txt permits named botsYes/no by user agentYes/no by user agent
WAF or bot challenge triggeredYes/noYes/no
Server log requestsUser agent, IP verification, pathUser agent, IP verification, path

This is more defensible than viewing the page in Chrome. Chrome proves that a human browser can render the page; it does not prove what a search crawler, API fetcher, or answer engine retrieved.

How to inspect what an AI crawler can actually see

Start with the raw response, not the rendered Elements panel in DevTools. Use curl, a server-side HTTP client, “view source,” or an HTML fetch tool that does not execute JavaScript. Search the returned document for the exact marker text, product name, FAQ answer, price, comparison table row, and author attribution you expect an AI engine to use.

A raw HTML review will commonly reveal one of three states:

  1. Complete response: Headings, body copy, pricing, FAQs, and product facts are present as text. This is the lowest-risk implementation for broad retrieval.
  2. Partial response: The basic copy is present, but comparison data, reviews, internal links, or FAQ answers load later. These omissions may explain why a page is mentioned without being cited for a decisive detail.
  3. Application shell: The response mostly contains scripts, styles, a root element, and perhaps a navigation footer. Treat priority content as inaccessible until evidence proves otherwise.

Then inspect robots.txt, response headers, canonical tags, and meta robots directives. OpenAI states that blocking OAI-SearchBot prevents a site from appearing in ChatGPT search answers, although navigational links may still appear in some circumstances. Perplexity likewise says a robots.txt block prevents PerplexityBot from indexing full or partial page text. (developers.openai.com)

Finally, investigate access controls. Cloudflare, Akamai, rate limiting, JavaScript challenges, CAPTCHAs, geo restrictions, or cookie walls can make a technically server-rendered page unavailable to an automated crawler. OpenAI specifically advises checking robots rules, web-protection layers, and human-verification logic when its crawlers cannot access a site. (help.openai.com)

Run a prompt test that measures answers, not anecdotes

After deployment, run the same fixed prompt set across the engines you care about. For most commercial sites, that means ChatGPT, Claude, Gemini, Perplexity, and Grok. Use real buyer questions, not only prompts that include your brand name.

For example, a B2B analytics vendor might test 20 prompts in three groups:

  • Category prompts: “What are the best inventory analytics platforms for mid-market manufacturers?”
  • Problem prompts: “How can a distributor reduce stockouts without replacing its ERP?”
  • Comparison prompts: “Compare Vendor A, Vendor B, and alternatives for demand forecasting.”

Run each prompt at least three times per engine, on separate sessions where possible, and record the exact date, model or product surface, browsing/search setting, and citations returned. Three runs do not make a statistically conclusive study, but they expose obvious volatility better than a single screenshot.

At AI Visibility Tracker, we separate four outcomes rather than turning every result into one opaque score:

  • Brand mention rate: The percentage of answers that name your brand.
  • Citation rate: The percentage of answers that link to or cite your domain.
  • Competitor presence: Which rival brands appear, and how often.
  • Share of answer: The portion of named-brand opportunities captured by your brand relative to competitors.

A CSR change may improve crawler-access checks yet leave answer-level visibility unchanged because the page lacks the evidence, reputation, relevance, or query fit an engine prefers. Conversely, an engine may mention a brand based on third-party sources even if it cannot retrieve the brand’s own JavaScript-only page. That is why visibility tracking needs page diagnostics and prompt-level measurement together.

What the test says about ChatGPT, Claude, Gemini, and Perplexity

The safe technical position is not that every AI tool behaves identically. The source experiment found the ChatGPT app more capable than the other tested product paths at recovering JavaScript-only and JSON-only content during a direct page-reading test. Community discussion also cited a separate Genezio test reporting JavaScript execution by an OpenAI search crawler on many observed pages. Those are valuable observations, but they are not an official rendering guarantee and they conflict with other large-scale observational reports.

We therefore do not recommend building a critical content architecture around an exception observed in one product surface or one week. Bots change, product interfaces are not the same as index crawlers, and retrieval can be cache-dependent. Test again after a major framework migration, CDN/WAF change, rendering change, or sudden citation decline.

Google is the important counterexample. Google says Googlebot renders JavaScript, so a well-built CSR application can be processed for Google Search. That does not mean Google AI Overviews will select the page for a response, nor does it establish equivalent behavior for ChatGPT or Perplexity. Google rendering capability and AI answer inclusion are separate decisions. (developers.google.com)

SSR, SSG, and prerendering: choose the smallest reliable fix

For pages intended to earn AI citations, we favor putting decision-making content in the first HTML response. That can be achieved through server-side rendering (SSR), static site generation (SSG), incremental/static regeneration, or targeted prerendering. The right choice depends on how often the page changes and how personalized it is.

A practical prioritization order

  1. Prerender high-intent commercial pages first. Start with product, pricing, solutions, comparison, integration, location, and FAQ pages that map to buyer prompts.
  2. Ensure the complete semantic core is in HTML. Include the heading, proposition, evidence, pricing context where public, FAQs, and relevant internal links—not merely a title and summary.
  3. Keep interactive features client-side if needed. Calculators, filters, logged-in dashboards, and animations can still hydrate in the browser after meaningful copy is delivered.
  4. Move to SSR or SSG for templates with recurring gaps. If hundreds of pages return shells or “Loading…” states, one-off prerendering may become harder to maintain than a template-level solution.

This approach controls engineering scope. You do not need to rebuild every application route to improve the visibility of the 25 pages most likely to be cited in commercial research.

For broader planning, our guide to spending a $2,000 SEO budget beyond backlinks explains why technical accessibility and measurable content improvements can deserve priority before another generic link-building campaign. If you are choosing a wider SEO stack, see our comparison of Ahrefs alternatives and AI visibility tracking.

Why structured data and JSON alone are not enough

Structured data can help systems understand entities and page attributes, but it should support—not replace—human-readable HTML content. The original source’s JSON-only test is a useful warning: data inside a script block may not be treated as equivalent to visible page text by every tool or direct-fetch path.

For a product page, publish the core claim twice only where appropriate: once as visible, crawlable prose in the HTML and once as valid structured data. Do not hide the substantive answer solely in a JavaScript object, API response, accordion that is never included in the server response, or client-side state store.

The same principle applies to internal links. If a category page exposes only JavaScript-injected links, some systems may not discover the deeper comparison or documentation pages consistently. Google says it can process JavaScript, but also notes that parsing the original HTML works well for traditional and server-rendered pages whose response already contains content. (developers.google.com)

Re-test after deployment and watch competitor gaps

A rendering fix is a hypothesis, not a completed visibility program. Capture a baseline before release, deploy one clear change, wait long enough for relevant crawlers and indexes to revisit the pages, then repeat the same prompt set. OpenAI and Perplexity both state that robots-related crawler changes may take around 24 hours to reflect, but indexing and answer-level citation timing can vary beyond that. (developers.openai.com)

Compare before and after by engine and prompt cluster. If citation rate rises for pricing prompts but not comparison prompts, investigate whether competitors have stronger third-party validation, more complete comparison content, or better-aligned pages. If no change occurs despite complete HTML, look beyond rendering: content specificity, source credibility, bot blocks, canonicalization, and query intent may be the constraint.

This is where ongoing tracking earns its place. A raw-HTML audit tells us whether the engine had an opportunity to read the content. A prompt-level tracker tells us whether the brand is actually winning the answer. For context on why citations and referrals are not interchangeable, read our analysis of what AI search referral data to news sites really shows.

FAQ

Are client-side rendered websites invisible to AI crawlers?

Not categorically, but CSR creates material risk when the useful text exists only after JavaScript runs. The referenced direct-fetch experiment found that HTML content was available to all five tested tools, while JavaScript-only content was recovered consistently only by the ChatGPT app. Googlebot is documented to render JavaScript, but that does not establish identical behavior for other AI crawlers. (developers.google.com)

Do GPTBot, ClaudeBot, and PerplexityBot execute JavaScript?

There is no safe universal guarantee to rely on. Provider documentation identifies what OpenAI’s GPTBot and PerplexityBot are for, but does not promise that every crawl will execute application JavaScript. Treat initial HTML as the dependable baseline, verify actual logs and responses on your own site, and repeat the test when bot behavior or site infrastructure changes. (developers.openai.com)

Can ChatGPT cite content that is rendered only in the browser?

It can happen, but it is not a dependable content-delivery strategy. The source experiment reported that the ChatGPT app recovered JavaScript-only facts during a direct URL test, and discussion referenced observations of OpenAI crawler rendering in other cases. Direct URL reading, search indexing, and ordinary cited answers are different workflows, so server-rendering key facts remains the safer choice.

How do I test what an AI crawler can actually see on a CSR page?

Fetch the URL without JavaScript and search the raw response for a unique marker, priority claims, FAQs, and product details. Then check robots.txt, HTTP status, canonicals, WAF responses, and verified server logs for OAI-SearchBot, GPTBot, ClaudeBot, and PerplexityBot. Follow with repeated buyer-prompt tests to see whether technical accessibility becomes actual mentions or citations.

Will prerendering high-value pages fix AI citation problems without rebuilding the whole site?

It can fix the crawlability part of the problem for the pages most likely to influence revenue, such as pricing, product, solution, and comparison pages. It cannot guarantee citations: answer engines also weigh query relevance, available sources, and competitor evidence. Prerender the semantic core first, then measure prompt-level mention and citation changes before committing to a larger rebuild.