Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Content only rendered client-side: empty raw HTML fix

SEO-136High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Every page is delivered in two stages. First the server sends raw HTML. Then the browser runs JavaScript, which can add, change or replace content. This second result is the rendered HTML.

With client-side rendering (CSR), the raw HTML is a thin shell: a title, some script tags and an empty container. Your headline, copy, product details, prices and links only exist after the scripts download, run and fetch data. A visitor sees a normal page. A crawler that reads only the raw HTML sees almost nothing.

Example: raw HTML of a client-side-only pagehtml
<!doctype html>
<html>
<head>
  <title>Shop</title>
  <script defer src="/static/app.js"></script>
</head>
<body>
  <div id="root"></div>
</body>
</html>

This is common with single-page apps built in React, Vue or Angular without server rendering, with some headless setups, and with page builders or widgets that inject whole sections via JavaScript.

Why it costs you leads or sales

Pages that cannot be read without JavaScript are harder to find. The effects stack up:

What goes wrong
  • Google has to queue the page for rendering, so indexing can be delayed and sometimes content is missed.
  • Many AI crawlers and link preview bots fetch only the raw HTML, so your page may be absent from AI answers and show blank social previews.
  • Titles, descriptions and internal links that only appear after rendering may not be picked up.
  • Slow or failing scripts leave real visitors and crawlers with an empty page.
  • Fewer indexed pages means fewer visits to your forms, product pages and checkout.
How a crawler sees a client-side-only page
  1. Crawler requests pageServer returns 200
  2. Raw HTML readOnly an empty container
  3. Content indexedNothing to index
  4. Ranking or AI citationPage rarely surfaces
  5. Lead or saleVisitor never arrives

The break is at the first step: the HTML holds no content, so everything after it is lost to crawlers that skip JavaScript.

Words visible to a crawlerExample numbers
Words visible to a crawler (example)Raw HTML (CSR): 12 words; Rendered HTML (CSR): 640 words; Raw HTML (after fix): 635 words024549112640635Raw HTML (CSR)Rendered HTML (CSR)Raw HTML (after fix)words

Example: the same product page measured in raw HTML versus after JavaScript runs. Numbers are illustrative.

How to check if your site has it

Compare raw and rendered HTML
  1. View the raw source

    Open the page in Chrome and press Ctrl+U (Cmd+Option+U on Mac). This is the raw HTML. Search it (Ctrl+F) for a sentence from your main copy, your H1 and a product name.

  2. Compare with the rendered DOM

    Right-click the page, choose Inspect, and look at the Elements panel. If the text appears here but not in view-source, it is added by JavaScript.

  3. Fetch without JavaScript

    Run curl and search the output for your key text.

  4. Use Google Search Console

    Open URL Inspection, enter the page, choose View crawled page and check the HTML tab and screenshot. Compare with the live test.

  5. Try with JavaScript disabled

    In Chrome DevTools, open the Command Menu (Ctrl+Shift+P), run Disable JavaScript and reload. A blank page confirms it.

Check the raw HTML for your main textbash
curl -s https://example.com/your-page | grep -i "your headline text"
# No output means the text is not in the raw HTML
Blank shell until scripts run

A crawler that skips JavaScript stops at the empty shell.

How to fix it

The goal is that the main content, headings, links, title and meta tags are all present in the first HTML response. You have three main routes: server-side rendering (SSR), static generation, or prerendering. Which one fits depends on how the site is built.

Rendering options compared
OptionHow it worksBest for
Server-side renderingServer builds the HTML on each requestFrequently changing or personalised pages
Static generationHTML built ahead of time at deployMarketing pages, blogs, docs
PrerenderingA tool renders the JS page to HTML for youExisting SPAs that are hard to rewrite
HydrationServer HTML is then made interactive in the browserUsed together with SSR or static
Fix by platform
  1. Move to a framework with server rendering

    For React use Next.js or Remix, for Vue use Nuxt, for Angular use Angular SSR, for Svelte use SvelteKit. Render marketing and product routes on the server or at build time.

  2. Fetch data on the server

    Load the content in the server or build step, not in a useEffect or mounted hook after the page loads.

  3. Or add prerendering

    If a rewrite is not possible, prerender key routes to static HTML at build time and serve those files.

Raw HTML before and after

Before

  • Body holds only an empty root div
  • Headline, copy and links appear after scripts run
  • Title and meta tags set by JavaScript

After

  • Headline, copy and links are in the first HTML response
  • Title, meta description and canonical are in the head
  • JavaScript only adds interactivity

How to confirm it's fixed

Confirmation checks
  • View source shows your H1, main copy and key links.
  • The curl command returns your headline text.
  • The page still shows its content with JavaScript disabled.
  • Search Console URL Inspection live test shows the same text in the rendered HTML.
  • The title, meta description and canonical are in the raw head.
  • A pasted link shows a proper preview in social or chat apps.

How to prevent it happening again

Habits that keep content crawlable
  • Make server or static rendering a requirement for any new page type.
  • Add a build or CI test that fetches the raw HTML and fails if the H1 or main text is missing.
  • Review new plugins, apps and widgets for content loaded via JavaScript.
  • Re-run URL Inspection on a sample page after every major front-end release.
  • Keep a list of templates and note whether each is server-rendered.
Simple CI check for raw HTML contentbash
#!/bin/sh
URL="https://example.com/your-page"
if curl -s "$URL" | grep -qi "your headline text"; then
  echo "OK: content in raw HTML"
else
  echo "FAIL: content missing from raw HTML"
  exit 1
fi

How FunnelGuard handles this

FunnelGuard does not check this yet. Comparing raw and rendered HTML is a possible future check, but today it is not part of the product.

What FunnelGuard does do is run your real customer journeys with a robot visitor on a schedule, checking each step of lead forms, checkouts and booking or chat buttons, plus the tracking hits sent to ad and analytics platforms and whether test leads reach your inbox and CRM. If a client-side rendering problem leaves a page blank or breaks a journey step for the robot visitor, that journey would fail, but this is not the same as checking what crawlers see in your raw HTML.

Questions people ask

Why does view-source show an empty page but my site looks fine?

View-source shows the raw HTML before JavaScript runs. Your browser then runs scripts that build the content, so you see a full page. If the raw HTML is empty, the content depends on JavaScript, which crawlers may not run.

Does Google index JavaScript-rendered content?

Google can render JavaScript and index the result, but it does so in a separate step that can happen later and may fail on errors or blocked resources. Putting the content in the raw HTML is faster and more reliable.

Can ChatGPT and other AI crawlers see JavaScript content?

Many AI crawlers fetch only the raw HTML and do not run JavaScript, so content added client-side may be missing from what they read. Crawler behaviour varies and changes, so serving content in the HTML is the safe choice.

How do I check if my content is rendered client-side?

Open view-source on the page and search for a sentence from your main copy. If it is missing there but visible on the page and in DevTools Elements, it is client-rendered. You can also run curl on the URL and search the output.

How do I fix a React single-page app that is not indexed?

Add server-side rendering or static generation, for example by moving to Next.js or Remix, so each route returns full HTML. If a rewrite is not possible, prerender key routes at build time and serve that HTML.

Is server-side rendering the only fix?

No. Static generation and prerendering also put content in the raw HTML. Pick based on how often the content changes and how your site is built.

Does FunnelGuard detect empty raw HTML?

No, not yet. It is a possible future check. FunnelGuard currently runs your customer journeys and checks tracking and lead delivery, so use curl, a CI test or Search Console to watch for this issue.

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.