streaming SSR
Server-side rendering that sends the HTML shell immediately and streams the rest of the page as each piece of data becomes ready.
In more detail
Next.js flushes the layout and loading fallbacks first, then sends each Suspense boundary's content with a small inline script that swaps it into place. This cuts Time to First Byte and lets users see and use the page sooner.
Related terms
- server-side rendering — Building a page’s HTML on the server for each request, so the browser can show content before any JavaScript runs.
- Suspense — A React component that shows a fallback, such as a spinner or skeleton, while components inside it are waiting for something to load.
- chunked transfer encoding — An HTTP/1.1 way of sending a body of unknown length as a series of pieces, each preceded by its size, ending with an empty piece.
- Time to First Byte — How long it takes from sending a request until the first byte of the response arrives.
Taught in
- App Router Architecture: Server-First Paradigms — Next.js 15 & Modern App Router Architecture
- Parallel & Intercepting Routes: Modals & Split Views — Next.js 15 & Modern App Router Architecture
- Streaming SSR: Progressive HTML & Chunked Transfers — Next.js 15 & Modern App Router Architecture
- Metadata API: Dynamic OpenGraph & Head Management — Next.js 15 & Modern App Router Architecture