The other day in the team we were playing with one simple bug. The bug was why the Intersection Observer is loading almost all images on the page which are not in the viewport?
It was simple, the src attribute was empty:
Continue reading “The dimensions of an img tag”
<img src="" data-src="" class="lazy-load" alt="Some title" />