Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Content only rendered by JavaScript: invisible to AI crawlers

SEO-388High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

When a page loads, the server sends raw HTML. In a client-side rendered site (many React, Vue or Angular setups, and some page builders and widgets), that HTML is nearly empty. The browser then runs JavaScript, which fetches data and builds the visible text.

Browsers and Googlebot run that JavaScript. Many AI crawlers do not, or do not reliably. They read only the first HTML response. Anything added later, such as product descriptions, prices, reviews, FAQs or tabs, is missing from what they see. Crawler behaviour changes over time, so do not rely on any assistant rendering your scripts.

AI assistants answer from what they can read. If your pricing, services or answers are not in the HTML, the assistant has nothing to quote. It may cite a competitor, a directory or a review site instead, or describe your business from a thin snippet.

What a non-JS crawler sees
  1. Crawler requests pageFetches the URL
  2. Server sends empty shell<div id="root"></div>
  3. JavaScript builds contentNever runs for this crawler
  4. AI answer quotes youNo text to cite

The crawler stops at the first HTML response, so everything built by scripts is lost.

How to check if your site has it

Compare raw HTML with the rendered page
  1. Open view-source

    In Chrome, go to view-source:https://yoursite.com/page. This shows the raw HTML, not the rendered page. Search (Ctrl/Cmd+F) for a sentence, a price or a heading that you can see on the page.

  2. Fetch with curl

    Run the command below and search the output for the same text. If it is missing, non-JS crawlers cannot see it.

  3. Turn JavaScript off

    In Chrome DevTools, open the Command Menu (Ctrl/Cmd+Shift+P), run 'Disable JavaScript' and reload. Whatever disappears is JS-only.

  4. Test your key pages

    Repeat for the home page, top service or product pages, pricing, contact details and FAQs.

Check raw HTML for a phrasebash
curl -s -A "Mozilla/5.0" https://yoursite.com/pricing | grep -i "your price or headline"
# No output means the text is not in the initial HTML

How to fix it

The goal is simple: the words you want quoted must be in the first HTML response. The best method depends on your platform.

Put key content in the initial HTML
  1. Use native content blocks

    Standard posts, pages and most themes render on the server. Problems usually come from plugins that load content by AJAX, such as some tabs, accordions, review or pricing widgets.

  2. Replace JS-loaded widgets

    Where a widget fails the view-source test, check its settings for a server-side or 'no AJAX' option, or place the same text in a normal paragraph or block.

Initial HTML before and after

Client-side only

  • HTML contains an empty root div and script tags
  • Price, description and FAQ appear only after scripts run
  • AI crawlers see no answer to quote

Server-rendered

  • HTML contains headings, text, price and FAQ
  • Scripts only add interactivity
  • Any crawler can read and quote the page

How to confirm it's fixed

Confirmation checks
  • view-source shows your headline, main paragraph, price and FAQ text
  • The curl command returns the phrase you searched for
  • The page still reads fully with JavaScript disabled
  • Structured data (JSON-LD) is present in the raw HTML too
  • Key pages checked, not just the home page

How to prevent it happening again

Add a raw-HTML check to your release routine. Before launching a redesign, new framework or widget, run the curl test on your top pages. In your team's process, treat 'is the text in view-source?' as part of done.

Rendering methods compared
MethodText in first HTML?Notes
Client-side renderingNoRisky for AI crawlers
Server-side renderingYesRendered on each request
Static generationYesBuilt ahead of time, fast
Pre-renderingYesGood for existing SPAs

How FunnelGuard handles this

FunnelGuard does not check this yet. Comparing raw HTML with rendered content is a possible future check. Today, FunnelGuard runs your real customer journeys with a robot visitor and checks form steps, tracking hits and lead delivery, so it can show when a journey step breaks. It does not tell you whether AI crawlers can read your page text.

To watch for this issue now, run the curl check on your key pages after each release, or add it as a script in your build pipeline that fails if an expected phrase is missing. The free read-only FunnelGuard website audit is another way to review your site, but do not treat it as a raw-HTML test.

Questions people ask

Do AI crawlers execute JavaScript?

Many do not, or do not do it reliably. Googlebot renders JavaScript, but several AI crawlers read only the initial HTML. Behaviour changes, so the safe approach is to put key content in the first HTML response.

Why is my site not showing up in ChatGPT or Perplexity answers?

One possible cause is that your content is built by JavaScript, so crawlers see an empty page. Other causes include blocked crawlers in robots.txt or bot protection. Check view-source first, then your robots.txt and firewall settings.

How do I check what AI crawlers see on my page?

Open view-source:yourpage in Chrome, or run curl on the URL, and search for your key text. If it is not there, non-JS crawlers cannot see it. You can also disable JavaScript in DevTools and reload.

Is a React or single-page app bad for AI search visibility?

Only if it renders on the client alone. A React app using server-side rendering or static generation, for example with Next.js, sends full HTML and works fine for crawlers.

What is the difference between view source and Inspect Element?

View source shows the raw HTML the server sent. Inspect Element shows the page after JavaScript changed it. Crawlers that skip JavaScript only see what view source shows.

Does pre-rendering count as cloaking?

Not when the pre-rendered HTML matches what users see. It becomes a problem if you show crawlers different content than visitors. Keep both versions the same.

Does FunnelGuard detect JavaScript-only content?

No. FunnelGuard does not check this yet, though it is a possible future check. It currently monitors customer journeys, tracking hits and lead delivery.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.