SSR: Server-Side Rendering

Server-Side Rendering (SSR) creates the page's HTML on the server, then sends that finished HTML to the browser.

What you will learn

How SSR works

  1. The user requests a page.
  2. The server gathers the data and creates HTML.
  3. The server sends the completed HTML.
  4. The browser can display the content before optional scripts enhance it.

Strengths and trade-offs

Choosing SSR or CSR

Content pages that need a fast first view often benefit from SSR. Private dashboards and highly interactive screens may use CSR. Many frameworks combine both, so choose based on the data, interaction, and performance needs rather than treating either approach as universally better.