Server-side rendering (SSR) generates the initial HTML for a page on the server, on every request, and sends a fully-formed document to the browser before any JavaScript runs. Client-side rendering (CSR) sends a mostly-empty HTML shell along with a JavaScript bundle, and the browser builds the visible page only after that bundle downloads, parses, and executes. Both approaches can be fast. Both approaches can be slow. The rendering strategy itself is rarely the root cause of a performance complaint — what matters is which stage of the pipeline is taking too long, and that stage looks different depending on which strategy is in use. The illustrative example below follows a product page through a full diagnostic pass, matching each symptom to its actual cause rather than assuming the rendering strategy is automatically to blame. The figures are representative of the pattern, not measurements from a specific live site.

The Complaint: “The Product Page Feels Slow”
Picture an illustrative example: a mid-sized e-commerce catalog built on Next.js, using getServerSideProps for its product detail route. Users describe the page as sluggish, but “sluggish” isn’t a metric — it’s a starting point for investigation, not a diagnosis. The first step in any real case is translating that vague complaint into numbers using the Network and Performance panels in Chrome DevTools, alongside field data from the Chrome UX Report.
The numbers in this example tell a common story: Time to First Byte (TTFB) is slow, First Contentful Paint (FCP) follows close behind it, and Time to Interactive (TTI) doesn’t land until several seconds later. That gap between FCP and TTI — where the page is visible but unresponsive — is the signature of an SSR-specific problem, and it’s one CSR apps rarely produce in the same shape.
Symptom One: A Slow First Byte Points at the Server, Not the Browser
Before touching any client-side code, the TTFB number deserves attention on its own. A TTFB above 600ms on a production server, absent obvious network issues, almost always traces back to what’s happening during the server-side render itself — data fetching, template compilation, or both.
The route’s getServerSideProps function in the example looks like this:
export async function getServerSideProps({ params }) {
const product = await fetchProduct(params.id);
const reviews = await fetchReviews(params.id);
const recommendations = await fetchRecommendations(params.id);
return {
props: { product, reviews, recommendations },
};
}
Three await calls, executed one after another, each waiting for the previous one to finish before starting. Adding timing instrumentation around each call typically shows one or more of these fetches dominating the total — on a slow route they can add up to nearly a second of sequential waiting, on top of normal server processing overhead, before a single byte of HTML can be sent.
This is a common and entirely avoidable SSR failure mode: independent data requests written as if they depend on each other when they don’t. The fix was running them concurrently instead:
export async function getServerSideProps({ params }) {
const [product, reviews, recommendations] = await Promise.all([
fetchProduct(params.id),
fetchReviews(params.id),
fetchRecommendations(params.id),
]);
return {
props: { product, reviews, recommendations },
};
}
Running the three calls in parallel collapses the combined wait time to roughly the duration of the slowest single request rather than the sum of all three, which can meaningfully lower TTFB. But it does not touch the FCP-to-TTI gap: that problem remains, unchanged.
Symptom Two: A Long Gap Between Paint and Interactivity Points at Hydration
With TTFB addressed, the remaining problem was a long stretch where the page displayed content but ignored clicks. This delay is specific to how SSR works: the server sends static HTML, and the browser has to download the JavaScript bundle, run React, and attach event listeners to that already-visible markup before any of it responds to input. That process is called hydration, and a slow hydration pass is the most distinctive failure mode SSR produces that CSR simply doesn’t — a CSR page has nothing rendered at all until its JavaScript finishes, so there’s no window where the page looks ready but isn’t.
Profiling the hydration phase with the React DevTools Profiler is how you surface this class of cause: the product page in the example hydrates not just the visible content but three below-the-fold widgets — a size guide modal, a shipping calculator, and a related-products carousel — none of which the user can see or interact with until they scroll. All three are bundled into the same JavaScript payload and hydrated synchronously as part of the initial pass, regardless of whether they are needed yet.
The fix used next/dynamic to defer hydration of those components until they were actually needed:
import dynamic from 'next/dynamic';
const ShippingCalculator = dynamic(() => import('../components/ShippingCalculator'), {
ssr: true,
loading: () => <ShippingCalculatorSkeleton />,
});
const RelatedProducts = dynamic(() => import('../components/RelatedProducts'), {
ssr: false,
});
The shipping calculator kept ssr: true since it needed to appear in the initial HTML for SEO reasons, but its hydration was split into a separate JavaScript chunk loaded on demand. The related-products carousel, which added no SEO value and sat well below the fold, was switched to client-only rendering entirely, removing it from the server-rendered payload and the initial hydration pass altogether.
Deferring that work can cut the JavaScript executed during initial hydration substantially, and it can bring TTI down from several seconds to a fraction of that. The FCP-to-TTI gap shrinks in step.
Symptom Three: A New Complaint Appears — Flicker on Slow Connections
Once TTI improves, a different report can surface from users on throttled mobile connections: a brief flash where the page appears complete, then visibly shifts as the related-products carousel pops in seconds later. This is a trade-off worth naming plainly rather than treating as a bug: deferring hydration for below-the-fold content improves the metrics that measure initial responsiveness, but it can introduce a visible layout change if the deferred content lacks a reserved space.
The fix wasn’t reversing the dynamic import — it was reserving space for the deferred component so its arrival didn’t shift anything around it:
<div style={{ minHeight: '320px' }}>
<RelatedProducts productId={product.id} />
</div>
With a fixed-height container in place, the carousel still loads on the same delayed schedule, but its arrival no longer moves the surrounding content. Cumulative Layout Shift (CLS), which tends to tick upward after a dynamic-import change, returns to its earlier level — the reserved-space container is the standard remedy.
Why This Wouldn’t Have Looked the Same Under CSR
It’s worth pausing on why these particular symptoms are SSR-flavored, since the same underlying mistakes produce different-looking problems under CSR. A CSR version of this same page, fetching all its data client-side after the JavaScript bundle loads, would not show a slow TTFB in the same way — its initial HTML is nearly empty, so the server responds quickly regardless of how slow the data fetching turns out to be. Instead, the equivalent mistake would show up as a long blank-screen period before FCP, since nothing paints until the bundle downloads and the client-side requests resolve.
The hydration gap is SSR-specific for the same reason: CSR doesn’t hydrate pre-existing server HTML because there isn’t any to hydrate. A slow CSR page’s dead zone happens before paint, not between paint and interactivity. Matching the shape of the delay — before paint, or between paint and interactivity — to the rendering strategy in use is usually enough to know where to start looking, before opening a single file.
The Full Picture, Symptom to Fix
| Stage | Issue Found | Symptom | Fix |
|---|---|---|---|
| Server data fetching | Sequential await calls in getServerSideProps |
Elevated TTFB | Run independent fetches concurrently |
| Hydration | Below-fold widgets hydrated synchronously with critical content | Long FCP-to-TTI gap | Defer them with next/dynamic |
| Deferred content | No reserved space for the dynamically-imported carousel | New CLS after the deferral | Reserve space with a fixed-height container |
The page would end up with a lower TTFB, an FCP shortly after, and a TTI well below where it started — with layout stability restored on throttled connections. None of the three fixes requires abandoning SSR or switching the route to CSR; each addresses a specific bottleneck that SSR’s request lifecycle makes visible in a particular way.
A Short Diagnostic Reference
When a rendering-performance complaint comes in, the shape of the delay is the fastest signal available:
- A slow TTFB on an SSR route usually means server-side data fetching is serialized when it could run concurrently, or the server itself is doing too much synchronous work before responding.
- A long gap between FCP and TTI on an SSR route almost always points to hydration — check what’s being hydrated on initial load that doesn’t need to be.
- A long delay before FCP on a CSR route points to bundle size or client-side data fetching, not the server, since there’s little server-rendered content to blame.
- A layout shift appearing after a performance fix is a sign that something was deferred without a reserved space for it, not a reason to undo the deferral.
Before deciding whether a page’s rendering strategy is the problem, it’s worth running through this list against the actual waterfall and Profiler data for that specific route. In the example above, three targeted fixes address what first looks like a single vague complaint — and none of them involves rewriting the page from SSR to CSR or back again. Related guides: How to Cut a React App’s Image Load Time: A Practical Guide, Improving Largest Contentful Paint (LCP) in React Apps: A Beginner vs Advanced Guide, and Common Mistakes That Slow Down Next.js Image Optimization.
🔗 Recommended Reading
- React Render Props Performance: A Beginner Tutorial
- React Performance Mistakes in Fintech Dashboards and How to Fix Them
- Lazy Loading Images and Components in React: A Step-by-Step Tutorial
- React Memoization: When and How to Use memo, useMemo, and useCallback
- Next.js App Router Performance Optimization for Beginners: A Step-by-Step Guide