I know there’s a load() event in jQuery which is triggered when the image has finished loading. But what if the event handler is attached after the image has finished loading?
Is there a property like $('#myimage').isLoaded() to check if the image is already loaded?
You can check the
completeproperty of the image.Nope, but you could make it so 🙂
This would produce
trueif all images in the collection have been loaded, andfalseif one or more images were not. You could adapt it to suit your needs.