On this page
What this issue is
With client-side rendering, the server returns a tiny HTML page, often just <div id="root"></div> and a script tag. The browser must download the JavaScript, run it, and only then draw the headline, image and buttons. Until that finishes, the screen is blank or shows a spinner.
<!doctype html>
<html>
<head>
<title>Book a demo</title>
<script defer src="/static/app.8f3a1c.js"></script>
</head>
<body>
<div id="root"></div>
</body>
</html>Why it costs you leads or sales
Largest Contentful Paint (LCP) measures when the biggest visible element appears. On a CSR page, that element cannot appear until the whole bundle has run, so LCP is late by design. Phones on mobile data and older devices feel this most, and paid traffic is often mostly mobile.
- Ad clickVisitor lands on your URL
- Empty HTMLOnly a root div arrives
- JS bundle runsSlow download or parse leaves a blank screen
- Content and formAppear late, or never
- Lead or saleVisitor has already left
The visitor sees nothing until the bundle runs, so every later step is delayed or lost.
Example: illustrative numbers on a mid-range phone with a slow connection. Your timings will differ.
How to check if your site has it
View the raw source
Open the page, right-click and choose View page source (not Inspect). If you see your headline and button text, the content is in the HTML. If you only see an empty root div and script tags, the page is client-side rendered.
Fetch it without JavaScript
Run curl on the URL and search for your headline. If it is missing, the server is not sending it.
Disable JavaScript in Chrome DevTools
Open DevTools, press Ctrl+Shift+P (Cmd+Shift+P on Mac), type 'Disable JavaScript' and reload. A blank page confirms the problem.
Throttle the network
In the Network tab choose Slow 4G and a 4x CPU slowdown in the Performance tab, then reload. Watch how long the screen stays blank.
Run Lighthouse or PageSpeed Insights
Look at the LCP value and the 'Reduce JavaScript execution time' and 'Avoid enormous bundles' hints. A late LCP with a small image points to rendering delay.
curl -s https://example.com/landing | grep -i "your headline text" || echo "Not in HTML: content is rendered by JavaScript"A blank screen while the bundle loads, then content, if the script succeeds.
How to fix it
The goal is that the headline, hero image, copy and call-to-action button are present in the first HTML response. The exact route depends on your stack.
Pick a rendering mode
For a React app, move to a framework that renders on the server or at build time, such as Next.js (static generation or server components), Remix or Astro. For Vue use Nuxt, and for Angular use Angular SSR. Static generation is the best fit for landing pages that rarely change.
Or prerender the key routes
If a rewrite is too big, prerender your landing and funnel routes to static HTML at build time and serve those files, so the app only takes over after the first paint.
Split and defer the bundle
Use code splitting and dynamic imports so the landing route does not load the whole app. Defer chat widgets, analytics extras and below-the-fold components.
Put the LCP image in the HTML
Make sure the hero image is a real img tag in the server HTML, not created by JavaScript.
Check for custom app embeds
Standard Webflow pages are rendered as HTML on the server. If your page is blank, look for an embedded React or Vue app, or custom code that builds the section in JavaScript.
Replace JS-built sections with native elements
Rebuild the hero, headline and button with Webflow elements so they ship in the HTML. Keep JavaScript for enhancements only.
Check the theme or builder
Classic themes render HTML in PHP. A blank page usually means a headless or JS-rendered theme, or a block or widget that loads its content through JavaScript and an API call.
Use a server-rendered option
Switch the affected hero or section to a standard block or template that outputs HTML. If you run a headless setup, enable server rendering in the front-end framework.
Test the funnel page source
View the source of your published funnel step. If key content is missing, check for custom code blocks or embedded apps that build it with JavaScript.
Move critical content to native elements
Use the builder's own headline, image and button elements for the first screen, and keep scripts for non-critical features.
Do not build page content from tags
If a Custom HTML tag injects the hero or form, move that content into the page template. Tags fire after the page loads, so injected content is always late.
Client-side rendered
- HTML contains only an empty root div
- Headline and form appear after the bundle runs
- Blank screen on slow phones
- If the script fails, nothing shows
Server or static rendered
- Headline, image and button are in the HTML
- Content paints as soon as the HTML and CSS arrive
- JavaScript adds interactivity afterwards
- Page still shows content if a script is slow
How to confirm it's fixed
- View page source shows your headline, hero image tag and button text
- The page shows its main content with JavaScript disabled
- The curl check finds your headline
- LCP in Lighthouse or PageSpeed Insights has dropped on mobile
- The form or button still works once JavaScript has loaded
- Ad and analytics tags still fire after the change
How to prevent it happening again
- Set a rule that landing and funnel routes must render HTML on the server or at build time
- Add a build check that the headline text appears in the generated HTML
- Set a JavaScript budget for landing routes and review it when dependencies change
- Test on a throttled mobile profile before each release
- Re-test after adding new embeds, widgets or tag changes
How FunnelGuard handles this
FunnelGuard detects this issue only partly. A robot visitor loads your funnel pages on a schedule and checks LCP and blank-page timeouts. If a step is slow to show its largest element, or the page stays blank until a timeout, the failure is re-checked from a second region and you get one alert with a screenshot and a likely cause.
Questions people ask
Why is my page blank until JavaScript loads?
Your page is probably client-side rendered. The server sends an almost empty HTML file and the browser builds the content after it downloads and runs the JavaScript bundle. Until that finishes, there is nothing to show.
How do I check if my page is client-side rendered?
Right-click and choose View page source. If your headline and button text are missing and you only see an empty root div and script tags, the page is client-side rendered. You can also disable JavaScript in Chrome DevTools and reload to see if the page goes blank.
Does client-side rendering hurt LCP?
Yes. The largest element cannot be painted until the JavaScript has run and built it, so LCP is pushed later. The effect is worst on slow phones and connections.
How do I fix a React app that shows a white screen before it loads?
Render the first screen on the server or at build time with a framework such as Next.js, Remix or Astro, or prerender your landing routes to static HTML. Then reduce the remaining bundle with code splitting so the page becomes interactive sooner.
Is a loading spinner enough to fix a blank page?
No. A spinner is also drawn by JavaScript, so it still waits for the bundle and does not improve LCP. The real headline, image and button need to be in the HTML.
Is server-side rendering always better than client-side rendering for landing pages?
For landing pages and funnel entry steps, usually yes, because visitors see content sooner and the page works even if a script is slow. Highly interactive app screens behind a login can stay client-side rendered.
Can FunnelGuard tell me my page is client-side rendered?
Not directly. FunnelGuard checks LCP and blank-page timeouts on your funnel steps, so it can alert you when a page is slow or stays blank. It does not inspect your HTML to identify the rendering method, so confirm that with View page source.
Related issues
- PRF-001LCP over 2.5 s on a funnel stepFix guide
- PRF-002LCP over 4 s on mobile (poor) on the paid landing pageFix guide
- PRF-017Hydration delay: SSR page not interactive for secondsFix guide
- PRF-014Unused JavaScript over 500 KBFix guide
- PRF-009LCP image injected by JavaScript slider after loadFix guide
- PRF-012Render-blocking synchronous JS in <head> (jQuery, sliders)Fix guide