I would like to display a loading bar before the entire page is loaded. For now, I’m just using a small delay:
$(document).ready(function(){
$('#page').fadeIn(2000);
});
The page already uses jQuery.
Note: I have tried this, but it didn’t work for me: loading bar while the script runs
I also tried other solutions. In most cases, the page loads as usual, or the page won’t load/display at all.
Use a div
#overlaywith your loading info / .gif that will cover all your page:jQuery:
Here’s an example with a Loading bar: