Rendering and architecture · Comparison

CSR vs SSR vs SSG vs ISR

Four answers to one question: when is a page's HTML built? In the browser, on the server for each request, once at build time, or at build time with refreshes in the background.

4 options · 7 questions side by side · updated

CompareCSRSSRSSGISR
HTML is builtIn the browserOn the server, per requestAt build timeAt build time, then refreshed
First viewSlow: waits for JavaScriptFastVery fast, from a CDNVery fast, from a cache
SEOWeak without extra workStrongStrongStrong
Data freshnessLive, fetched in the browserLive on every requestAs of the last buildRefreshed on a timer or on demand
Server costNone: static filesWork on every requestNone after the buildSmall: occasional rebuilds
Personalised pagesYes, in the browserYesNo, same for everyoneNo, same for everyone
Typical useDashboards behind a loginSearch results, feeds, basketsBlogs, docs, marketing pagesLarge stores and news sites

How to choose between CSR, SSR, SSG and ISR

  • Pick SSG for pages that are the same for everyone and change rarely.
  • Pick ISR when those pages are numerous or change often, and a few minutes of staleness is acceptable.
  • Pick SSR for pages that must be fresh or personalised on every request.
  • Pick CSR for app screens behind a login, where search engines do not matter.

The options

More comparisons

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.