Skip to content

window.onload include images

Does window.onlaod include image load? or I must use another event for it?

I want use ajax call to get HTML document which contains images, but I want show this document when all images are loaded.

Answer

it does include all webpage’s resource’s load – more information here: https://developer.mozilla.org/en/docs/DOM/window.onload