lazy loading (web resources)
Waiting to load something, such as an image, script or video, until it is actually needed.
In more detail
next/image lazy-loads images by default, next/script lazyOnload waits for idle time and YouTubeEmbed loads the player only on interaction. This saves bandwidth and main-thread time.
Related terms
- next/image — The Next.js Image component, which resizes, converts and lazy-loads images and reserves their space to prevent layout shift.
- lazyOnload — A next/script strategy that loads the script only after everything else has loaded, during browser idle time.
- YouTubeEmbed — An @next/third-parties component that shows a light placeholder and loads the full YouTube player only when needed.
Taught in
- Image & Font Optimization: Zero Layout Shift Assets — Next.js 15 & Modern App Router Architecture