I have this event handler for when the page is loading. It shows a preloader GIF image when the window start loading.
$(window).load(function(){
$("#Preloader").css('display','block');
});
But I don't know how to detect if the window stops loading so I can remove the preloader.
How to detect if the window stops loading?