Cumulative Layout Shift
A Core Web Vitals score measuring how much visible content unexpectedly jumps while a page loads.
In more detail
Shifts happen when images without dimensions, late fonts or injected content push visible content around. Reserving space for everything before it loads keeps the score low; 0.1 or less counts as good.
Example
next/image reserves space for images, next/font matches fallback font sizes and skeletons reserve room for streamed content.Related terms
- Core Web Vitals — Google's set of user-experience metrics for loading, responsiveness and visual stability, used in search ranking.
- next/image — The Next.js Image component, which resizes, converts and lazy-loads images and reserves their space to prevent layout shift.
- next/font — The Next.js font module, which downloads fonts at build time, serves them from your own domain and sets up fallbacks that avoid layout shift.
- skeleton screen — A grey outline of the content that is about to load, shaped like the real layout, shown instead of a spinner.
Taught in
- 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
- Loading UI: Instant Loading States with loading.tsx — Next.js 15 & Modern App Router Architecture
- Action State: useActionState & Optimistic Form UI — Next.js 15 & Modern App Router Architecture
- Metadata API: Dynamic OpenGraph & Head Management — Next.js 15 & Modern App Router Architecture
- Image & Font Optimization: Zero Layout Shift Assets — Next.js 15 & Modern App Router Architecture