Description
For reasons that, as I understand it, as of jQuery 1.8, the event loadis out of date, however, it was still possible to determine whether the image (even if it was in the cache) was uploaded only using certain workarounds. Therefore, the event was obsolete on It’s quite annoying because it is a starting point, at least for detecting when the image has finished loading on the page.
However, it is out of date, and therefore I ask this question with the hope that I will find an answer, thus helping me and potential others who may soon come across the same question.
Example (before jQuery 1.8)
Without using the plugin (since this should be done in very small code, so the plugin is not needed), I would like to call the function when every image on my page is loaded.
Something like this (this will not work due to fatigue):
$('#mn_content .column').on('load','img',function(){
console.log('loaded');
})
My question
Does anyone know how to achieve this now when the event loaddoes not exist?
Please note: If the only way to achieve this (now) is to use Javascript objects new Image, then please do not waste time helping me, as others need your help more than I do. I can write this code, it just seems a little long, conceived for something so basic.
I just asked this question to make sure this cannot be achieved without using Javascript objects image
, , , , , , .: -)