Originally Posted by xelawho
It doesnít say anything about being deprecated, only:
This method is a shortcut for .on('load', handler).
Just like other common events (click, mouseenter, etc.) both can be used, the
function as well as the shortcut.
And by the way, the above mentioned source also says:
Caveats of the load event when used with images
A common challenge developers attempt to solve using the .load() shortcut is to execute a function when an image (or collection of images) have completely loaded. There are several known caveats with this that should be noted. These are:
- It doesn't work consistently nor reliably cross-browser
- It doesn't fire correctly in WebKit if the image src is set to the same src as before
- It doesn't correctly bubble up the DOM tree
- Can cease to fire for images that already live in the browser's cache
actually fires when the DOM tree (i. e. the plain HTML) has been built/parsed completely. This is different from when all the contents have loaded. A document can be ready for manipulation while images are still loading; and it is ready when the HTML has been read from top to bottom, regardless of what else happens on the page.