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.
<!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:
- 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.
- Crawler requests pageServer returns 200
- Raw HTML readOnly an empty container
- Content indexedNothing to index
- Ranking or AI citationPage rarely surfaces
- 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.
Example: the same product page measured in raw HTML versus after JavaScript runs. Numbers are illustrative.
How to check if your site has it
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.
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.
Fetch without JavaScript
Run curl and search the output for your key text.
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.
Try with JavaScript disabled
In Chrome DevTools, open the Command Menu (Ctrl+Shift+P), run Disable JavaScript and reload. A blank page confirms it.
curl -s https://example.com/your-page | grep -i "your headline text"
# No output means the text is not in the raw HTMLA 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.
| Option | How it works | Best for |
|---|---|---|
| Server-side rendering | Server builds the HTML on each request | Frequently changing or personalised pages |
| Static generation | HTML built ahead of time at deploy | Marketing pages, blogs, docs |
| Prerendering | A tool renders the JS page to HTML for you | Existing SPAs that are hard to rewrite |
| Hydration | Server HTML is then made interactive in the browser | Used together with SSR or static |
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.
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.
Or add prerendering
If a rewrite is not possible, prerender key routes to static HTML at build time and serve those files.
Use a standard theme template
Classic and block themes output content in PHP, so raw HTML is normally complete. Check for page builders or plugins that load content through AJAX or REST calls.
Disable JS-only loading
In the plugin or theme settings, turn off options such as load content via AJAX for posts, product grids or reviews you want indexed.
Headless setups
If WordPress feeds a JavaScript front end, render that front end with SSR or static generation.
Keep key content in Liquid
Product titles, descriptions and prices should be output by Liquid in the theme, not fetched by JavaScript after load.
Check apps
Review apps and widgets that inject descriptions, reviews or collections via script. Switch off or replace any that hide core content.
Headless builds
If you use Hydrogen or another headless front end, make sure routes are server-rendered.
Use native elements
Webflow publishes static HTML, so native elements and CMS collection lists are in the raw HTML.
Avoid JS-injected text
Move copy that is added through custom code or third-party embeds into native Webflow elements.
Use standard Wix elements
Text, images and CMS content in native elements are served for crawlers. Avoid putting key copy inside custom embeds or iframes.
Test with URL Inspection
Confirm the crawled HTML in Search Console contains your main text.
Keep copy in blocks
Use text, product and blog blocks rather than code blocks that write content with JavaScript.
Test the live page
View source and confirm your headline and body text appear.
Keep key copy in native elements
Put headlines and body text in native funnel or website builder elements, not custom code that injects text.
Check the published page
View source on the live URL and search for your headline. If it is missing, move that copy out of scripts.
Do not inject content with tags
Custom HTML tags that write page copy, links or schema into the page rely on JavaScript. Move important content into the page template.
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
- 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
- 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.
#!/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
fiHow 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.
Related issues
- SEO-137Rendering depends on blocked resourcesFix guide
- SEO-139JS errors stop the page rendering for crawlersFix guide
- SEO-140Title, meta or canonical changed by JS differently from raw HTMLFix guide
- SEO-141Links rendered by JS without hrefFix guide
- SEO-144Hydration mismatch or blank page on slow JSFix guide
- SEO-146Pre-rendering service expired or brokenFix guide