# img lazy loading in html
To implement [[Lazy Loading]] to an `` tag, add the attrbitue `loading=lazy`
This will load the image when scrolling is near the viewport, using the [Intersection Observer API](https://developers.google.com/web/updates/2016/04/intersectionobserver)
## Further reading
-
## What led to learning this
- Accidentally: a rabbit hole that started at [Jason Crawford's github](https://github.com/jasoncrawford) and ended at