In IE , it seems, the image has a readyState property. I need for Firefox .

onLoad does not work, because it must be installed before the start of the download.

document.readyState again does not match, since the image is created using JS after the page loads.

The appearance of the element is easily tracked, but I get a stub on the output.

You can, of course, make a small delay, but this is ugly, and it will not always save.

    1 answer 1

    onLoad does not work, c jQuery $ (img) .bind ('load' ... only works if you set an event before the picture finishes loading.

    It turned out that IMG has special properties: complete, naturalHeight/Width . The only thing they do not work with animated GIF. Checked only in Firefox