How does loading="lazy" work?

Lazy Loading

loading="lazy" is an HTML attribute used for lazy loading images and iframes. It tells the browser to delay loading an image until it's about to enter the viewport, improving page speed and performance.

For example:

It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before... It's loading but it's faster than before...