Rendering

Suspense production boundary granularity

Choose independent user-visible regions; move slow work inside the appropriate boundary. Check buffering, layout stability and controlled measurements. Source: https://nextjs.org/docs/app/getting-started/fetching-data

Formal Syntax & Structure

nextjs syntaxnextjs
<Suspense fallback={...}>...</Suspense>

Working Example

Example Snippetnextjs
// Partial server page: Summary and Suggestions are async componentsimport {Suspense} from 'react';import {Summary,Suggestions} from './sections';export default function Page(){return <main> <h1>Reading room</h1> <Suspense fallback={<p role="status">Loading summary</p>}><Summary/></Suspense> <Suspense fallback={<p role="status">Loading suggestions</p>}><Suggestions/></Suspense> </main>;}
Next.js Reference