I'm trying to make a PRELOADER that will appear before loading the page. The problem is that even after the page is loaded it does not disappear. I have the following code
HTML:
<div id="preloader"></div>
CSS:
#preloader{
position: fixed;
left: 0;
top: 0;
z-index: 999;
width: 100%;
height: 100%;
background: $white url("../img/loading.gif") no-repeat center center;
background-size: 80px;
}
jQuery:
$(window).load(function() {
$("#preloader").delay(500).fadeOut("slow").remove();
});