@@ -121,7 +121,7 @@ Using any of these functions will opt the whole route into dynamic rendering at
...
@@ -121,7 +121,7 @@ Using any of these functions will opt the whole route into dynamic rendering at
height="525"
height="525"
/>
/>
With Streaming, routes are rendered on the server at **request time**. The work is split into chunks and streamed to the client as it becomes ready. This allows the user to see a preview of the page before it's fully rendered.
Streaming enables you to progressively render UI from the server. Work is split into chunks and streamed to the client as it becomes ready. This allows the user to see parts of the page immediately, before the entire content has finished rendering.
<Image
<Image
alt="Diagram showing partially rendered page on the client, with loading UI for chunks that are being streamed."
alt="Diagram showing partially rendered page on the client, with loading UI for chunks that are being streamed."
...
@@ -131,6 +131,6 @@ With Streaming, routes are rendered on the server at **request time**. The work
...
@@ -131,6 +131,6 @@ With Streaming, routes are rendered on the server at **request time**. The work
height="785"
height="785"
/>
/>
Streaming is useful for lower-priority UI, or UI that depends on slower data fetches that would block rendering for the whole route. For example, reviews on a product page.
Streaming is built into the Next.js App Router by default. This helps improve both the initial page loading performance, as well as UI that depends on slower data fetches that would block rendering the whole route. For example, reviews on a product page.
In Next.js, you can stream route segments using `loading.js`, and UI components with [React Suspense](https://react.dev/reference/react/Suspense). See the [Loading UI and Streaming](/docs/app/building-your-application/routing/loading-ui-and-streaming) docs for more information.
You can start streaming route segments using `loading.js` and UI components with [React Suspense](/docs/app/building-your-application/routing/loading-ui-and-streaming). See the [Loading UI and Streaming](/docs/app/building-your-application/routing/loading-ui-and-streaming) section for more information.