Vercel

Improving INP with React 18 and Suspense

Aug 9, 2022
Improving INP with React 18 and Suspense
SummaryAI, from the source post

This post details how React 18's selective hydration with Suspense can significantly improve INP by making hydration non-blocking, allowing components to become interactive faster. A case study on nextjs.org showed a reduction in TBT from 430ms to 80ms and improved INP to 48ms. Other optimization techniques include using CSS for animations, throttling/debouncing events, reducing DOM size, optimizing SVG rendering, using web workers, and lazy loading assets.

More from the Customer Site Performance Optimization trail