I have a bootloader that loads when the page loads at startup. I need to show the percentage of completion in it.
My application has a lot of jquery and css included in it, and it also includes an ajax call.
At the moment, I was showing a progress bar when the page loaded and hid it when ajax completed successfully.
In addition, I showed the percentage, but increased it manually using the code below:
function timeout_trigger() {
$(".progress").css("max-width", p + "%");
$(".progress-view").text(p + "%");
if (p != 100) {
setTimeout('timeout_trigger()', 50);
}
p++;
}
timeout_trigger();
The problem is that until progress of up to 100 is achieved, the page loads and the content is displayed, and therefore the loader is hidden between let say - at 60% - the loader is hidden.
(, jquery, css ..) .
, .