Addy Osmani web.dev

It's time to lazy-load offscreen iframes!  ↦

Addy Osmani:

Native lazy-loading for images landed in Chrome 76 via the loading attribute and later came to Firefox. We are happy to share that native lazy-loading for iframes is now standardized and is also supported in Chrome and Chromium-based browsers.

<iframe src="https://changelog.com" loading="lazy" width="600" height="400"></iframe>

YaS!! Lazy load all the things 💚


Discussion

Sign in or Join to comment or subscribe

0:00 / 0:00