Skip to content
IT glossary
FrontendUpdated December 3, 2026

SSR

With server-side rendering (SSR), a server builds a page’s HTML and sends it to the browser. The browser can display the content without waiting for the application’s JavaScript to build the page.

Also known as: Server-Side Rendering, серверный рендеринг

What the server actually renders

Server-side rendering (SSR) produces HTML, not pixels. On the first visit to a page, the HTTP response can already contain the headings, text, and links that make up the page. The browser still parses that HTML, applies CSS, and paints the result. With client-side rendering (CSR), by contrast, the browser typically receives an HTML shell, and application JavaScript builds the main content after loading.

From request to interactive page

Suppose a visitor opens /events. The server reads the route and, on a cache miss, fetches the event listings and turns them into HTML using a template or a component tree. The browser can start parsing the response as it arrives. If the frontend uses React, the browser then runs the client code for interactive components, reusing the existing DOM and wiring up the event handlers. This step is called hydration. SSR doesn't require hydration: a plain HTML page with standard links and forms can work without it.

Example: a ticket listing

The response includes event names and dates, so visitors can scan the listing before the app's JavaScript finishes loading. A regular link to an event detail page can work right away. A date picker whose behavior is implemented in JavaScript may be visible but not ready to use. This is why measuring when content appears doesn't tell you when every control will respond.

Choosing between SSR, static generation, and CSR

Request-time rendering makes sense when the HTML needs to reflect information from the current request, such as event availability for a selected region. It also lets crawlers read the main content without executing JavaScript, though it doesn't guarantee better rankings. If the listing only changes when editors publish an update, static site generation (SSG) can produce the HTML ahead of time so a CDN can serve it without running the renderer on each request. For a signed-in dashboard that doesn't need indexing, CSR may be a simpler choice. A single application can use different strategies for different routes.

What interviewers look for

Explain the trade-off rather than saying SSR is always faster. Slow data fetching can increase time to first byte (TTFB), and a large JavaScript bundle can still delay interaction. Caching can take repeated rendering off the request path, but a shared cache must not serve one user's personalized page to another. Another common question is why hydration fails: the server output and the client's first render need to agree. If they independently pick a featured event at random, they can produce different markup. Pass the server's choice to the client so both start with the same value.