I have a basic image element on my page. I am capturing it's load event to log a message to my console.
$("#myImg").on('load', function() {
console.log("Loaded");
});
The above code works perfectly fine, unless the image that is being loaded already exists within the users cache, in that case the message is not loaded at all.
Is there an event such as loaded
to check if the image is already loaded?