I have a rather large background image as part of the website layout. It’s basically the header. It takes a while to load.
I wonder if there is an AJAX or javascript loader that can show a loading gif before the image is loaded and then be removed so it doesn’t show when you change pages next time.
The CSS for the header is below
I wonder if anyone knows what code to use for a preloader? Would be grateful for info about this
Thanks!
CSS
#header{
height: 567px;
width:1000px;
margin: 0 auto;
background: url(images/header.png);
background-repeat: no-repeat;
}
HTML
<div id=“header”></div>