Veltos.Tech

Development

SSR vs CSR

Also known as: server-side rendering, client-side rendering, rendering strategy

Definition

SSR and CSR are two ways of producing HTML: with server-side rendering the page is assembled on the server and arrives complete, while with client-side rendering the browser receives an empty shell and JavaScript draws the content after load.

The difference shows in the first server response. With SSR the HTML already contains the heading, the text, the prices and the links, and the browser only has to paint and then hydrate the page. With CSR an almost empty document arrives alongside a JavaScript bundle that has to download, execute, request data over an API and only then display anything. On a fast device over a good connection the gap is invisible; on a budget Android phone on mobile data it becomes several seconds of blank screen.

For search this is not a matter of taste. Google can execute JavaScript but does it on a second pass and with delay; Yandex handles client-rendered content noticeably worse, which is decisive for a Russian commercial project. The practical rule: everything that has to rank, meaning product pages, service pages, articles and category listings, is served as ready HTML from the server. Everything that lives behind a login and never reaches search, meaning dashboards, admin panels and interactive configurators, can render on the client without concern.

In practice the choice is rarely binary. Modern frameworks let you mix modes per page: static generation for things that change rarely such as articles and landing pages, server rendering for anything user-specific or frequently updated such as a catalogue with live stock, and client rendering for interactive islands inside an already painted page. There is one very common trap: switching SSR on and declaring performance solved. SSR improves time to first content but does nothing about a heavy bundle that blocks interactivity and wrecks INP.

Related terms

Related services

Read more

Need this done, not just defined?

We do this work, not only write about it. Describe the task and we will scope it and send a staged estimate.