Languages
[Edit]
EN

HTML - image lazy loading

3 points
Created by:
Wayne
475

In this article, we would like to show you how to set image lazy loading using HTML.

Quick solution:

 

Practical example

Edit

In this example, we use the loading attribute set to lazy to set lazy loading for images and delay their loading on the web page. This can significantly reduce the time it takes for the page to load for the first time and become fully interactive.

 

See also

Edit
  1. JavaScript - image lazy loading

  2. JavaScript - preload image

  3. JavaScript - Image() documentation with examples

References

Edit
  1. Lazy loading - Web Performance | MDN
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join