Rendering Patterns
How does your page actually get to the browser? Rendering patterns determine whether content is pre-built, generated on request, or assembled in the browser — and each choice has profound consequences for performance, SEO, and user experience. Here is everything you need to know about the five major rendering patterns and when to use each one.
A rendering pattern is the strategy your application uses to convert code into HTML that the browser can display. The choice of pattern determines where the rendering happens (server or client), when it happens (build time, request time, or both), and how the page becomes interactive.
In the early 2010s, every page was server-rendered. PHP, Rails, Django — they all assembled HTML on the server and sent it down the wire. Then came single-page applications (SPAs) with React, Angular, and Vue. The pendulum swung hard to client-side rendering: the server sent a bare HTML shell, and JavaScript built everything in the browser.
Today we know better than to pick one side. Modern frameworks give you a spectrum of rendering options — sometimes on a per-route basis within the same application. The five major patterns are:
Each pattern makes a different tradeoff between time-to-first-byte (TTFB), first contentful paint (FCP), interactivity, and cost. The trick is matching the pattern to the page's data characteristics and performance requirements.
CSR is the default mode for raw React, Vue, and Angular. The server returns a minimal HTML document with a <div id='root'> and a script tag. The browser downloads the entire JavaScript bundle, parses and executes it, and only then does the page content appear.
<div id='root'></div> plus <script> tags.CSR excels for authenticated, app-like experiences where SEO is irrelevant. A dashboard, a project management tool, a code editor — these are natural CSR candidates. The user has already logged in, the content is personalized, and interactivity is the primary concern.
SSR brings rendering back to the server. When a browser requests a page, the server fetches the necessary data, renders the React/Vue components into HTML, and sends the complete document to the client. The browser paints immediately — no waiting for JavaScript to execute.
Traditional SSR (the kind that frameworks like Next.js Pages Router and Nuxt 2 used) works synchronously: the server cannot send anything until the entire page is rendered. This is what people mean when they say "SSR has slow TTFB" — the server must complete all data fetching and rendering before sending a single byte.
SSG pre-renders every page at build time. The output is a directory of HTML files (one per route) that can be served directly from a CDN. When a browser requests a page, the CDN serves the pre-built HTML instantly — no server-side processing at request time.
This is the fastest rendering pattern because it eliminates the server from the critical path. The tradeoff: content is stale until the next build. For a blog post published once, that is fine. For a product catalog updated hourly, it is not.
ISR is SSG with a twist: instead of rebuilding the entire site to update content, individual pages can be regenerated in the background after a configured interval — or on demand via a webhook.
Here is how it works. You set a revalidation interval (say, 60 seconds). The first request after deployment serves the pre-built page (same as SSG). For the next 60 seconds, every request gets the cached version. After 60 seconds, the first request still gets the cached version (so the user never waits), but the server triggers a background regeneration. The next request gets the fresh page.
Streaming SSR is the most recent evolution. Instead of waiting for the entire page to render on the server, the server sends HTML in chunks as each part becomes ready. The browser renders each chunk progressively — the page shell appears immediately, and slow components fill in as the server finishes them.
React 19's server-side rendering supports this natively. You wrap slow components in <Suspense> boundaries, and the server streams HTML for each boundary independently. The browser renders the fallback immediately, then replaces it with the real content when the streaming chunk arrives.
Streaming SSR pairs with selective hydration. Instead of bundling all component JavaScript into a single script tag, React can hydrate components independently as their HTML streams in. The footer does not need to wait for the sidebar's JavaScript to load.
Here is how the five patterns stack up across the dimensions that matter most in production:
| Dimension | CSR | SSR | SSG | ISR | Streaming SSR |
|---|---|---|---|---|---|
| TTFB | Fast (CDN) | Slow | Fastest | Fast (CDN) | Good |
| FCP | Slow (JS parse) | Fast | Fastest | Fastest | Fast (progressive) |
| FID / TBT | Good | Moderate (hydration) | Best (minimal JS) | Best (minimal JS) | Best (selective) |
| SEO | Poor | Excellent | Excellent | Excellent | Excellent |
| Data freshness | Real-time | Per-request | Build time only | Stale-while-revalidate | Per-request |
| Server cost | Minimal | High (CPU per request) | Build time only | Build + revalidation | Moderate (streaming) |
| Caching | CDN (static files) | Limited (CDN + headers) | CDN native | CDN native | Limited (chunked) |
| User-specific content | Yes | Yes | No | No | Yes |
Modern frameworks blur the lines between these patterns. You can mix SSG, SSR, and ISR within the same Next.js or Nuxt application — sometimes on different routes. Here is how the major frameworks implement each pattern.
Next.js App Router defaults to Server Components with SSG when possible. You control rendering per route using route segment config:
Next.js also supports streaming SSR via Suspense boundaries, and on-demand ISR via revalidatePath or webhook-triggered revalidation.
Remix takes a different approach. Every route is SSR by default. There is no static generation built in. Instead, Remix uses HTTP caching headers to tell the CDN what to cache and for how long. This makes Remix simpler conceptually — every request is the same — but relies on a CDN layer for performance.
Nuxt 3 uses routeRules for per-route rendering configuration. You define which routes are pre-rendered (SSG), server-rendered (SSR), client-only (CSR), or SWR-based (ISR equivalent):
| Pattern | Next.js | Remix | Nuxt 3 | Astro |
|---|---|---|---|---|
| CSR | "use client" components | ClientOnly | ssr: false in routeRules | client:only |
| SSR | dynamic = "force-dynamic" | Default | ssr: true | server:output |
| SSG | force-static | N/A (use CDN caching) | prerender: true | Default |
| ISR | revalidate + on-demand | Cache headers + webhooks | swr: 60 | revalidate + webhooks |
| Streaming SSR | <Suspense> with RSC | defer API | <Suspense> with Nuxt | N/A (static-first) |
Rendering patterns have a direct impact on search engine rankings. Here is how each pattern affects your SEO:
CSR is the worst for SEO. Googlebot can execute JavaScript and index dynamically-rendered content, but it does so in a second pass — weeks or months after finding the URL. The initial crawl sees a blank page. Other crawlers (Twitter, LinkedIn, Slack previews) do not execute JavaScript at all. If your page needs to appear in search results or link previews, CSR alone will not cut it.
All three deliver fully-formed HTML in the initial response. Crawlers see the content immediately. Google's indexer can process these pages on the first pass. The differences between them for SEO are marginal — what matters more is page speed, which all three improve over CSR.
Streaming SSR delivers HTML progressively. Googlebot waits for the stream to complete before indexing. As long as all critical content is in the stream before closing, streaming SSR is as SEO-friendly as traditional SSR. The risk is if your shell marks itself as complete before the content arrives — but modern CDNs and crawlers handle this correctly.
The fundamental tension in rendering patterns is between TTFB (time-to-first-byte) and FID (first input delay). You cannot optimize both simultaneously — every pattern makes a tradeoff.
Pre-built HTML from CDN. TTFB is as fast as the edge cache. Minimal JavaScript means FID is near-zero. The gold standard for content pages.
Same as SSG for cached responses. Background revalidation adds server cost but users never wait. FID is similar to SSG.
TTFB is improved over traditional SSR (shell streams immediately). FID stays low because components hydrate selectively. Best for data-heavy pages with slow API calls.
TTFB is fast (CDN-served shell). FID suffers because the browser must download and execute the JS bundle before anything is interactive.
TTFB is slow (server renders per request). FCP is fast (HTML arrives complete). FID is moderate because hydration blocks the main thread.
Choosing a rendering pattern is about matching the data characteristics of your page to the right strategy. Here is a decision framework:
| Scenario | Recommended Pattern | Why |
|---|---|---|
| Blog / Documentation | SSG | Content changes rarely. Pre-build everything. CDN cache is free. |
| E-commerce product pages | ISR | Mostly static with timely price/stock updates. ISR provides both. |
| News portal | SSR / Streaming SSR | Fresh content per request. Streaming improves TTFB for slow articles. |
| Dashboard (authenticated) | CSR / Streaming SSR | User-specific data, SEO irrelevant. Streaming gives fast first paint. |
| Marketing landing page | SSG | SEO-critical, rarely changes. SSG delivers the best Lighthouse scores. |
| Real-time collaborative app (Figma, Google Docs) | CSR | WebSocket state sync. Auth wall. CSR + code splitting is the natural fit. |
| Multi-page application mixed use | Hybrid (per-route) | SSG for content pages, SSR for dynamic routes, CSR for admin. One framework runs all. |
Rendering patterns are not a one-time architecture decision. They are a per-route optimization strategy. Here is what to remember: