I created a progress bar for loading a website using the jQuery UI progress bar. This progress bar shows the status of loading scripts. Sample
$.getScript('_int/ajax.js',function() { $("#progressinfo").html("Loading Complete ..."); $("#progressbar").progressbar({ value: 100 }); });
This progress bar is located in #indexloader , which blocks the downloadable site, its CSS:
#indexloader { z-index:100; position:fixed; top:0; left:0; background:#FFF; width:100%;height:100%; }
After the progress bar reaches 100% , I want to hide and remove #indexloader for what I used
$("#indexloader").fadeOut("slow",function() { $("#indexloader").remove(); });
But the problem is that although the scripts are loaded, the pages are not fully loaded, I see that images and other things are still loading.
So, before #indexloader out and removing #indexloader , I want to check if $(window).load() or not
Is there any way to check this?
source share