Performance: Async server components
HIGH IMPACT
Async server components improve page load speed by streaming content progressively and reducing blocking on the client.
export default async function Page() { const data = await fetchDataAsync(); return <div>{data.content}</div>; }
export default function Page() { const data = fetchDataSync(); return <div>{data.content}</div>; }
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Sync server component with blocking data fetch | Minimal DOM nodes initially | Single large reflow after full HTML arrives | High paint cost due to delayed content | [X] Bad |
| Async server component with streaming | DOM nodes streamed progressively | Multiple smaller reflows as content arrives | Lower paint cost with faster visible content | [OK] Good |