I have these 2 div's !
<div id="loader">
</div>
and
<div id="wrapper">
</div>
"The wrapper div is not inside the loader div for any clarification"
My script
$(window).bind("load",function() {
$('#loader').css('display',none);
$('#wrapper').css('visibility',visible);
});
What I intend to do with the script is to hide the loader div after the page has been completely loaded and display the wrapper div which contains all the contents of the page.
I initially set display:none
in the wrapper style.
As I expected the loader div is displayed but after the loading has been completed (which I can tell at least from the loading icon of the mouse and the favicon
region of the browser tab) but the wrapper div is not shown .
Any help would be nice.