I'd like to know how to hide the content and show only a loading gif on the page. I managed to implement but the images keep showing up, how to solve this? My code is here:
Here is the part in javascript:
$(document).ready(function(){
//Esconde preloader
$(window).load(function(){
$('#preload').fadeOut(1500);
});
});
And this is the name of my div:
<div id="preload"><img src="algumacoisa.gif"></div>
Someone could help me because this one only does not hide the contents of the page until it loads.