Back to blog
Learning·6 min read

Server-side rendering, explained simply

xcodelab team·

Client-side rendering (CSR) sends a mostly empty HTML page and lets JavaScript build the UI in the browser. It's flexible, but the first paint can be slow.

Server-side rendering (SSR) builds the HTML on the server for each request, so users see content immediately, and JavaScript 'hydrates' it afterward to make it interactive.

Static site generation (SSG) builds the HTML once, at build time, and serves the same file to everyone — the fastest option when content doesn't change per request.

A good rule of thumb: use SSG for content that rarely changes, SSR for personalized or frequently updated pages, and CSR for highly interactive, logged-in experiences.

#fundamentals#frontend