Apologies for bringing up a minor issue, but I'm struggling with this one. I added a pre-loader image to my page load using a simple method.
You can find my page here
Here is the HTML code for the Pre-loader image:
<div class="se-pre-con"></div>
The jQuery script to trigger the pre-loader on page load:
$(window).load(function() {
// Animate loader off screen
$(".se-pre-con").fadeOut();
});
Some CSS styling used:
<style>
.no-js #loader { display: none; }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url('http://www.rybena.com.br:8080/RybenaRepository/resource/img/loading.gif') center no-repeat #fff;
}
The Issue: When the page loads, it briefly flashes before displaying the Pre-loader image and then continues loading after the effect is complete. Ideally, the pre-loader should appear before the rest of the page. Can anyone help me figure out what went wrong?
Thank you.