server-side rendering

Building a page’s HTML on the server for each request, so the browser can show content before any JavaScript runs.

In more detail

Users see content sooner and search engines can read it without running scripts. The browser then loads JavaScript to make the page interactive.

Examples

The Next.js frontend is server-rendered and sits behind the Ingress on the root path.
Code that behaves differently on server and client, such as reading window or random numbers during a React render, breaks hydration.

Related terms

Taught in

References