I am using jQuery JavaScript library. I like the event listener .ready(); what fires when the DOM is set up. ( Pretty similar to .onload )
fires when the DOM is set up.
( Pretty similar to .onload )
I would find it very useful, if there was an event listener wich has a very similar behavior to this, but fires when an element is fully loaded. (f.e.: Picture, a Div, such )
I would appreciate both jQuery or JavaScript methods too.
Thanks.
Hank Greenberg
14-Oct-2013All elements (including div and img) are ready as soon as DOMReady fires - that's what it means.
However, you can use the load() event to run some code when an img tag has fully loaded the image in it's src attribute: