Sometimes we just want to display the website if all the images are loaded.
Or do something when a few images are loaded and viewable in the browser.
This script makes it very easy for you!
You create a nice onload function that triggers when the dom is loaded.
You didnt set the width and height attribute in the image tag because u want it to be just as big as it is.
This specific prototype function tries to read the height: “$(‘someimage’).getHeight()” but what the f… :
height is 0, nothing or undefined????