SSR, CSR, SSG, and ISR: Understanding Modern Rendering Strategies

Automated English translation of the original Spanish article. Code examples keep their original identifiers.

At its core, every web page answers one very specific question: who generates the HTML, and when? That single decision determines three things that truly matter: how fast content appears on screen, how well Google ranks you, and how much it costs to keep your site running.

CSR, SSR, SSG, and ISR are four different answers to that same question. In one, the user’s browser does almost all the heavy lifting; in another, the server handles it on every visit; in the third, everything is pre-built all at once at build time; and in the fourth, pages are generated at build time but intelligently refreshed over time.

In this article, we will examine each strategy one by one using a single consistent example: an online store. At the end, we will assemble a practical decision guide so you never have to guess.

CSR: Client-Side Rendering

In CSR, the server sends an almost empty HTML document—a shell—and the user’s browser builds the entire page by executing JavaScript. This is the classic model for SPAs (Single Page Applications) built with React, Vue, or Angular when there is no rendering server behind them.

Imagine visiting our store. The first thing you receive is that empty shell. The browser downloads the JavaScript bundle, requests products from an API, and only then paints them on the screen. Until that entire pipeline finishes, the user sees little to nothing.

Advantages

  • Once the application is loaded, navigation between views is extremely fluid because there is no full page reload.
  • The server setup is remarkably simple and inexpensive: in practice, it only serves static assets.
  • It is ideal for highly interactive user interfaces where users spend long sessions inside the application.

Disadvantages

  • The initial visual load can take a considerable amount of time. The browser must download, parse, and execute the JavaScript before it can render any content. The actual impact depends heavily on bundle size, device capabilities, and network connection.
  • SEO becomes much more demanding. While Google can execute JavaScript, client-rendered content typically requires an additional rendering phase. Furthermore, not all search crawlers or social bots run JavaScript, which directly impacts link previews when someone shares a URL.
  • Performance degrades noticeably on mobile devices and slower connections.

Useful when the page sits behind authentication and does not require search indexation. Think admin panels, internal dashboards, editor tools, or any private web application where SEO is irrelevant.

SSR: Server-Side Rendering

In SSR, the server generates the full HTML payload on every request and delivers it ready to be displayed. Afterwards, JavaScript “hydrates” the page: it attaches interactivity without having to rebuild the DOM from scratch.

Back to our store. When someone opens a product details page, the server queries the database right then, builds the HTML containing the current price and inventory, and returns it. The user sees actual content immediately, without waiting for client-side JavaScript to finish downloading and running.

Advantages

  • The first visible content renders quickly because users do not need to wait for all the JavaScript to load.
  • Excellent for SEO and rich social link previews (Open Graph, Twitter Cards, etc.).
  • Data can stay fresh on every single request, provided the underlying data source is queried and no upstream cache policy serves stale content.

Disadvantages

  • You need a server (or serverless functions) executing on every visit, which increases operational costs and infrastructure complexity.
  • If the database query or third-party API is slow, the server takes longer to start responding (higher TTFB).
  • You must ensure code runs properly both in the server runtime and in the browser (hydration mismatches).

Useful when content changes constantly or is personalized per user, and SEO is a priority. Classic examples: product detail pages with real-time stock, search result pages, or geo-targeted and user-personalized landing pages.

There are also variations such as Streaming SSR, where the server progressively streams HTML chunks to the browser before the full page is finished rendering, significantly improving perceived load times.

SSG: Static Site Generation

In SSG, every page is generated once during the build process and deployed as pre-rendered HTML files. When a user visits, nothing is computed on the fly: the infrastructure simply serves a static file, typically through a CDN edge.

In our store example, every product page turns into a .html file at build time. If a price changes, you have to trigger a rebuild and deploy again.

Advantages

  • Delivers exceptional response times because the HTML is already fully generated and distributed via edge CDNs. Final performance still depends on downstream assets (images, CSS, JS) that the browser needs to load and execute.
  • Inexpensive and straightforward to scale. With no server-side logic at runtime, the attack surface is minimal.
  • Outstanding for SEO, as complete markup is available right from the first byte.

Disadvantages

  • Content is only as fresh as the latest build. Any data update requires regenerating and redeploying.
  • With tens of thousands of pages, build times can become prohibitive.
  • On its own, it cannot provide per-user dynamic personalization.

Useful when content rarely changes. Blogs, documentation sites, marketing landing pages, portfolios, and company websites are perfect candidates. Portions of this website’s home page are a prime example of SSG.

ISR: Incremental Static Regeneration

ISR combines the best parts of SSG with a mechanism to stay up to date: pages are served statically, but they regenerate in the background after a designated time window or whenever explicitly triggered on demand. Next.js popularized this approach, and other modern frameworks and hosting platforms now provide their own implementations.

In our store, each product page is served as a static file and revalidated, say, every 60 seconds. You can also trigger an on-demand revalidation for a specific page whenever an editor updates a product’s price. It is worth noting that ISR is not a browser standard; it is a strategy implemented by frameworks and platforms. Its exact behavior depends on how caching, revalidation, and regeneration are managed. In Next.js, for instance, time-based revalidation can serve slightly stale content while generating a newer version in the background using the stale-while-revalidate pattern.

Advantages

  • Static page speed coupled with reasonably fresh data.
  • Avoids rebuilding the entire site for isolated content edits, allowing pages that did not exist during the initial build to be rendered on demand.
  • Scales seamlessly to massive catalogs.

Disadvantages

  • Visitors might see outdated content during the revalidation window.
  • Strongly tied to your framework and deployment platform; behavior can vary between environments.
  • Harder to debug: identifying the exact version of a page a specific user is receiving can be tricky.

Useful when you maintain many pages that change periodically and can afford a few seconds or minutes of cache latency. E-commerce catalogs, news publications, real estate listings, or any platform where sub-second freshness is not strictly critical.

Quick Comparison

No single strategy wins across the board. Each one balances speed, data freshness, and infrastructure costs differently.

StrategyWhere HTML is GeneratedFirst PaintSEOData FreshnessServer Cost
CSRBrowserSlowLimitedHigh (fetched live)Low
SSRServer, on every visitMedium to FastExcellentHigh (always live)High
SSGBuild timeVery FastExcellentLow (until next build)Very Low
ISRBuild time & background regenerationVery FastExcellentMedium (depends on window)Low to Medium

The data freshness listed above serves as a general guide. Rendering and caching are related yet independent decisions: an SSR page can serve cached data, and a static page can refresh automatically through regeneration.

How to Choose Without Overcomplicating It

Start with two simple questions: How often does the content change? and Does search engine indexation matter? That alone eliminates half of your options.

Page TypeCommon StrategyWhy
Blog or documentationSSGChanges infrequently and benefits from maximum delivery speed
Marketing landing pageSSGStable content and critical SEO requirements
Large e-commerce catalogISRHigh page volume with semi-frequent updates
News publicationISR or SSRDepends on how immediate updates must be
Search results or personalized pagesSSRDependent on the incoming request or user session
Authenticated dashboardCSRRequires no SEO and is heavily interactive

The good news is that you are not forced into one rendering strategy for your entire project. Modern frameworks like Next.js, Nuxt, Astro, or SvelteKit allow you to configure strategies on a per-route basis. Your landing page can be static, product pages can use ISR, the checkout flow can use SSR, and the customer portal can rely on CSR—all within the same codebase.

Here is how that concept is named in each ecosystem:

  • Next.js: Static Rendering, Dynamic Rendering, and ISR (also referred to as revalidation in its docs).
  • Nuxt: Prerendering and route-level rendering rules (routeRules), featuring cache drivers like swr and isr.
  • Astro: Static prerendering by default, alongside on-demand server rendering for selected routes using a server adapter.
  • SvelteKit: Prerendering, SSR, and per-page configuration using prerender, ssr, and csr options.

Exact naming conventions and options evolve between framework versions, so always refer to the specific documentation for your version.

When in doubt, a sound default order of preference is: try SSG first, adopt ISR if content needs periodic refreshes, fall back to SSR only when a route truly requires per-request computation, and reserve CSR for private, interactive interfaces.

Conclusion

CSR, SSR, SSG, and ISR are not competitors; they are tools tailored to different requirements and trade-offs. The fundamental question remains the same—who generates the HTML, and when—and the best answer varies page by page.

On my own site, I combine several of these strategies. The content hubs in the /temas/ section are static (SSG), compiled using Hugo, whereas the blog runs on WordPress, which server-renders each page dynamically via PHP. I explained how I bridge both worlds in Hybrid Architecture: A Blog with Hugo and WordPress.

Later, I automated the freshness layer: a cron job checks every 15 minutes for new posts and, only when detected, rebuilds the hubs using Hugo and deploys them via rsync. In practice, this functions as a custom, homemade ISR pipeline: an in-house static regeneration workflow. While it does not rely on a framework’s built-in ISR mechanics, it achieves the exact same goal—retaining the speed and cost efficiency of static files without requiring manual rebuilds whenever content updates. The trade-off is a 15-minute latency window. You can read the breakdown in Hybrid Architecture 2.0: Automating Content Hubs.

I did not use modern full-stack JavaScript frameworks or proprietary cloud services: Hugo, WordPress, cron, and rsync were more than enough. The best architecture is rarely the newest one—it is the one that cleanly separates concerns.

If you want hands-on experience, set up a small proof of concept in your framework of choice and assign a different rendering strategy to each route. In a single afternoon, you will clearly see the differences in speed, developer ergonomics, and the raw payload the browser receives.