Glossary · Web Development

Server-Side Rendering

SUR-vur syd REN-dur-ingnoun

Server-side rendering generates a page's full HTML on the server for each request so it arrives ready to display.

Part of speech
noun
Pronunciation
SUR-vur syd REN-dur-ing
Origin
From 'server,' the computer that hosts a site, and 'render,' to produce a finished view. It describes generating a page's HTML on the server for each request.

What is Server-Side Rendering?

Server-side rendering is an approach in which a web page's full HTML is generated on the server for each request, so that the page arrives at the browser already built and ready to display. When a visitor requests a page, the server runs the necessary code, gathers any data the page needs, assembles the complete HTML, and sends that finished document to the browser. The user sees meaningful content almost immediately, and search engines receive a fully formed page they can read without extra work. This stands in contrast to client-side rendering, where the browser receives a nearly empty shell and must run JavaScript to build the content after the page loads.

Mechanically, server-side rendering means the assembly work happens on the server at request time. For a page that shows, say, a product with live pricing and stock, the server queries the database, fills the template with the current data, and produces the final HTML on the spot, then delivers it. Modern JavaScript frameworks such as React support this by running on the server to produce the initial HTML, then handing off to the browser, where the same code takes over to provide interactivity. This combination aims to deliver the best of both worlds: fast, crawlable initial content from the server, plus the rich interactivity of a client-side application once the page is live.

The name is descriptive. "Server" refers to the computer that hosts the site and does the work, and "render" means to produce a finished, viewable result, so server-side rendering literally means producing the page's finished form on the server. The idea is as old as dynamic websites themselves, since early sites built pages on the server with languages like PHP. The term gained fresh prominence with the rise of JavaScript frameworks, which initially pushed rendering into the browser and then rediscovered the value of rendering on the server for speed and search visibility.

For a business, server-side rendering matters most where both fresh content and search performance are priorities. Because the server sends complete HTML, search engines can index the content reliably and immediately, which is valuable for pages that must rank. Users perceive the page as loading faster because they see real content sooner rather than staring at a blank screen while scripts run, which supports engagement and conversions and helps Core Web Vitals. Unlike static generation, server-side rendering can include up-to-the-moment data on every request, making it well suited to pages with frequently changing or personalized content, such as dashboards, search results, or live inventory.

The tradeoffs center on cost and complexity. Because the server builds a page for every request, it does more work than simply handing out a pre-built static file, which means higher server load and, under heavy traffic, higher hosting costs and the need for caching to keep things fast. Setups that combine server rendering with client-side interactivity can be complex to build and debug correctly. A common mistake is using server-side rendering for content that rarely changes, where static site generation would be cheaper and even faster, or conversely relying on pure client-side rendering for content that needs to be indexed and fast to appear. The right choice depends on how dynamic each page's content is, and many modern frameworks let a team mix server-side rendering, static generation, and client-side rendering across a single site to fit each page's needs.

Why it matters

Server-side rendering improves how quickly pages appear and how well search engines can read them, supporting both user experience and SEO on dynamic sites.