This can be difficult to handle, because after the page has finished loading, you need to wait until the image is fully loaded and you cannot avoid it. but you can use something like this:
You can set the image download source before the final image is successfully downloaded.
$('imageControl').load(function(){
// do something when image is loaded completely
})
.error(function(){
// handle if the image is not loaded
})
.attr('src', 'image source');
hope this helps
Relationship
Edgar
source share