The dimensions of an img tag

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:

<img src="" data-src="" class="lazy-load" alt="Some title" />
Continue reading “The dimensions of an img tag”