JavaScript, speed and access

Is my React or single-page website invisible to ChatGPT?

The short answer

It can be, if the site renders its content only in the browser. Many AI crawlers are widely reported to read the HTML without running JavaScript, so a client-side React or single-page app can look like an empty page to them. Rendering the content on the server or generating static pages fixes this.

Why single-page apps are at risk

A classic single-page application sends the browser a nearly empty HTML file and a bundle of JavaScript. The script then fetches data and builds the page. Navigation between pages often happens without new HTML being loaded at all.

That works well for people using a browser. For a crawler that does not execute JavaScript, the page may contain little more than a title and an empty container. At the time of writing, the major AI companies have not documented full JavaScript rendering for their crawlers, and independent testing widely reports that AI crawlers fetch HTML without running scripts. Can AI crawlers read JavaScript explains the background.

How to test your site

Open one of your key pages, right-click and choose "view page source". This shows the HTML the server sent, before any scripts ran. Search it for a distinctive sentence from the page's main content. If it is missing, crawlers that do not render JavaScript will not see it.

Repeat for your home page, service or product pages and about page. Some sites render a few pages on the server and leave others client-side, so one good result does not cover the whole site. Also check that links between pages are real anchor links with an href, not click handlers, since crawlers follow links to find pages.

Rendering options that fix it

The fix is to make sure the content is in the HTML the server sends. The common approaches are:

  • Server-side rendering, where each request returns fully built HTML. Frameworks built on React, such as Next.js or Remix, support this.
  • Static site generation, where pages are built into complete HTML files ahead of time, which suits content that does not change by the minute.
  • Pre-rendering, where crawlers are served a rendered snapshot. This can work, but it adds a moving part that can fall out of step with the live site.

Moving an existing client-side app to server rendering is a real development project, so it is worth checking how much of the site is affected first. Often the marketing pages can be rendered on the server while the logged-in app stays client-side.

Why it matters for being recommended

When ChatGPT searches the web, it reads a handful of pages and cites a few. A page that looks empty cannot be the one it quotes, so it falls back on directories, review sites or competitors. Search indexes that render JavaScript may partly cover you, but relying on that is a gamble. If a rebuild is planned, can a website redesign wipe out your AI visibility covers what to protect.

Related questions

  • Can AI crawlers read websites built with JavaScript?Often not fully. Googlebot renders JavaScript, but many AI crawlers are widely reported to read only the HTML the server sends, so content that appears only after scripts run may be invisible to them.
  • Can a website redesign wipe out my visibility in AI answers?It can, if the new site drops or moves pages without redirects, rewrites clear service copy into something vaguer, loads content with JavaScript that crawlers cannot read, or ships with crawler blocks left over from staging.
  • What does a technical AI SEO audit check?A technical AI SEO audit checks whether AI tools can reach, read and correctly understand your website: crawler access in robots.txt and your CDN, whether content needs JavaScript to appear, indexing in Google and Bing, structured data accuracy and consistent business details.
  • How do I make my website show up in ChatGPT search results?Make sure ChatGPT's search crawler can reach your site, that your pages are indexed and rank in conventional search, and that each page answers a clear question in plain text.

More questions about javaScript, speed and access

Next questionCan AI tools see content behind a login or paywall?

Find out whether ChatGPT and other AI tools recommend your business

Get an AI visibility audit showing whether ChatGPT and other AI tools recommend your business when people ask for what you offer, which competitors they name instead, and how you compare.

Request my AI visibility audit