Quote:
Originally Posted by Apostropartheid
Preload the images/use only one conjoined image for your backgrounds.
|
A joined image would be too large (6 x 64 KB) in my opinion.
Preloading is a trick I can use.
I tried implementing this
CSS and markup:
Code:
<div id="preloader">
<img src="http://domain.tld/path/images/01.png" width="1" height="1" />
<img src="http://domain.tld/path/images/02.png" width="1" height="1" />
<img src="http://domain.tld/path/images/03.png" width="1" height="1" />
<img src="http://domain.tld/path/images/04.png" width="1" height="1" />
<img src="http://domain.tld/path/images/05.png" width="1" height="1" />
<img src="http://domain.tld/path/images/06.png" width="1" height="1" />
<img src="http://domain.tld/path/images/07.png" width="1" height="1" />
</div>
with this as CSS
Code:
div#preloader {
position: absolute;
left: -9999px;
top: -9999px;
}
div#preloader,
div#preloader img {
visibility: hidden;
display: none;
}
This is what I put into my first page and stylesheet. It is a bit better, and only if the visitor isn't surfing to another page on the website too quickly.
Furthermore, when coming deeper down from the pages, the flashing is reoccuring, the preloading is apparentely only working when background images are loaded from the same path as the used background. When coming from subpages (which are placed in directories), the code would be '../../images/image.jpg' instead of 'images/image.jpg'.
I still feel my CSS is invalid regarding IE7 and IE8. Not many people have the same problem, so it is likely I'm doing something out of the ordinary.
Anybody willing to plow through my CSS to find a solution?