desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"

Home Page:https://imagesloaded.desandro.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to check if at least one image is loaded?

bit-pax opened this issue · comments

Is there a way to check if at least one image is loaded and get that image's width & height?

So basically all the images I have are the same size, so as soon as one is loaded, I can apply the image dimensions to all image containers and have the app moving forward instead of having to wait for all images to load. I don't do this in advance because the it's designed to be responsive so images sizes can be different depending on the screen width.