Imagesloaded v5 triggers loading of largest image when using srcset

Author: arjhunCreated Sep 23, 2022Updated Nov 28, 2024

Hi desandro! wordpress uses SRCSET attribute for responsive images. When I use imagesloaded It triggers the download of the largest image generating extra bandwidth. Am I doing something wrong? Is there a way of triggering imagesloaded on the size that the browser requests from the srcset? thanks!

edit:

I'm using imagesloaded@5