Having some trouble getting a div overlay to fade out when the page loads with a delay. For some reason, it's not fading and I can't figure out why...
$("#loading").delay(3000).fadeOut(3000);
#loading {
width:100%;
height:100%;
z-index:500;
background:#000;
position:absolute;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<div id="loading"></div>