Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Hydration delay: why your SSR page isn't interactive for seconds

PRF-017Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Server-side rendering (SSR) means the server sends finished HTML, so the visitor sees content quickly. But the page is not yet interactive. A framework such as React, Next.js, Nuxt, Vue or SvelteKit must download its JavaScript, run it, rebuild the page in memory and attach event handlers to the existing HTML. That step is called hydration.

Why it costs you leads or sales

Visitors act as soon as they see a button. If the first tap on Add to cart, Book now or Submit does nothing, many tap again, then leave. Some forms also lose typed text when hydration replaces the field. Others submit as a plain page reload and skip your tracking code, so the conversion is not recorded in your ad platforms.

What the visitor experiences
  1. HTML arrivesServer sends finished markup
  2. Content visibleHero and form are painted
  3. Visitor taps buttonJavaScript still loading, no handler attached
  4. Hydration finishesSeconds later, too late
  5. Lead or orderVisitor has already left

The page looks ready at step 2, but taps are lost until hydration finishes at step 4.

Time until the first tap worksExample numbers
Time until the first tap works (example)Before: full-page hydration: 4.2 seconds; After: lazy and partial hydration: 1.3 seconds0234.21.3Before: full-page hyd…After: lazy and parti…seconds

Example: illustrative hydration times on a mid-range phone before and after trimming JavaScript. Your numbers will differ.

How to check if your site has it

Check for hydration delay
  1. Test on a throttled device

    Open Chrome DevTools, go to Performance, set CPU to 4x or 6x slowdown and network to Fast 4G. Reload the page.

  2. Tap early

    As soon as the page paints, tap the main button or type in the form. If nothing responds for a second or more, hydration is delayed.

  3. Record a trace

    In the Performance panel, look for a long block of main-thread work labelled with scripts, often named after your framework bundle. Long tasks over 50 ms are flagged with a red corner.

  4. Compare the metrics

    Run PageSpeed Insights or Lighthouse. A good LCP with a poor INP or high Total Blocking Time points to hydration.

  5. Compare with JavaScript off

    Disable JavaScript in DevTools (Command Menu, 'Disable JavaScript'). If the page still shows full content, it is server-rendered and hydration is the gap.

How to fix it

The goal is less JavaScript to run before the page responds. Start with the biggest wins first.

Reduce hydration time
  1. Find what is in the bundle

    Use a bundle analyzer (for Next.js, the @next/bundle-analyzer package) to see which libraries dominate. Remove or replace heavy ones.

  2. Hydrate only what needs it

    Static sections such as text, footers and testimonials do not need JavaScript. Use islands or partial hydration (Astro islands, React Server Components) so only interactive parts hydrate.

  3. Lazy-load below-the-fold components

    Load chat widgets, carousels, modals and maps only when needed, using dynamic imports.

  4. Defer third-party scripts

    Load tags and widgets after the page is interactive. They compete with hydration for the main thread.

  5. Make key forms work without JavaScript

    Use a real <form> with an action, so a submit before hydration still goes through.

  6. Split long tasks

    Break heavy initialisation into smaller chunks so the browser can handle taps in between.

Next.js: load a heavy widget only in the browser, after the page is readyjavascript
import dynamic from 'next/dynamic';

const ChatWidget = dynamic(() => import('../components/ChatWidget'), {
  ssr: false,
  loading: () => null,
});

export default function Page() {
  return (
    <main>
      <h1>Book a demo</h1>
      <ChatWidget />
    </main>
  );
}
Where you make the change
  1. Use framework features

    In Next.js use dynamic imports and Server Components. In Nuxt use lazy-loaded components (prefix with Lazy) and lazy hydration where available. In Astro use client:visible or client:idle on islands.

  2. Remove unused dependencies

    Audit package.json and drop libraries you only use for one small function.

Full hydration vs targeted hydration

Before

  • Whole page hydrates in one large task
  • Chat, slider and tracking scripts load at once
  • First tap ignored for seconds on mid-range phones
  • Form submit may reload the page and skip tracking

After

  • Only the form and main button hydrate first
  • Widgets load on idle or when visible
  • First tap responds almost immediately
  • Form works even before JavaScript finishes

How to confirm it's fixed

Confirmation checklist
  • With 4x CPU slowdown, the main button responds on the first tap right after the page paints
  • Typing in the form right after load does not lose characters
  • The Performance trace shows no long task over about 200 ms during load
  • INP in PageSpeed Insights (field data, when available) is in the good range, 200 ms or less
  • The form submit still fires your conversion tags
  • Real-device test on a mid-range Android phone passes

How to prevent it happening again

Prevention habits
  • Set a JavaScript size budget and fail the build when it is exceeded
  • Review bundle size in every pull request that adds a dependency
  • Load new third-party scripts after interaction by default
  • Test key pages with CPU throttling after each release
  • Check INP in Search Console's Core Web Vitals report monthly

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It checks INP and LCP on the funnel steps it visits. If responsiveness gets worse after a release, those readings can point to it. It does not identify hydration as the cause, and it does not measure how long a particular component takes to hydrate or which script is responsible.

To cover the rest by hand, use the throttled DevTools test above, read the Performance trace for long tasks, and run a bundle analyzer after each release. FunnelGuard's scheduled journeys also show whether a robot visitor can complete the form or button step, which helps catch cases where the delay turns into a real failure. A Free plan (1 site, 2 journeys, daily checks, no card) is enough to start.

Questions people ask

Why is my page visible but buttons don't work for a few seconds?

The page is probably server-rendered and still hydrating. The HTML paints first, but the JavaScript that powers buttons and forms has not finished loading and attaching. Reduce the JavaScript sent on first load to shorten the gap.

What is hydration delay in simple terms?

It is the wait between seeing a server-rendered page and being able to use it. The browser must download and run JavaScript to make the static HTML interactive. On slow phones or with large bundles this can take seconds.

Does hydration delay affect Core Web Vitals?

Yes, mostly INP, which measures how quickly the page responds to taps and clicks. It can also raise Total Blocking Time in lab tests. LCP is often unaffected because the content is already painted.

How do I reduce hydration time in Next.js?

Use Server Components for non-interactive parts, load heavy client components with next/dynamic, and remove large dependencies found with a bundle analyzer. Also defer third-party scripts until after the page is interactive.

Is SSR bad for conversions?

No. SSR usually helps visitors see content sooner. It hurts only when too much JavaScript must run before the page responds. Keeping hydration small gives you the benefit without the frozen period.

How can I test hydration delay on my own site?

Open Chrome DevTools, throttle the CPU to 4x slowdown and the network to Fast 4G, reload, and tap the main button as soon as it appears. Then record a Performance trace to see long script tasks. A delay before the tap works confirms the issue.

Can FunnelGuard detect hydration delay?

Only partly. FunnelGuard checks INP and LCP on your funnel steps, which can reveal a responsiveness drop. It does not pinpoint hydration as the cause, so you need DevTools and a bundle analyzer for that.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: INP/LCP only.

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.