Lazy loading is too easy now

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI16 min

About this video

A walkthrough of the browser's native lazy loading for images, using the loading attribute and the picture element, with a look at preventing content jumping and how it compares to scripted approaches. It suits developers and designers who build web pages and want to improve load performance.

What you’ll learn

  • Apply the loading attribute to defer offscreen images
  • Prevent layout shift by setting image width and height
  • Use lazy loading with the picture element for responsive images