/ Published in: CSS
URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=23
A series of tests to determine the best way to preload css images on elements that by default are hidden.
Expand |
Embed | Plain Text
#preload { background-image: url(image.png); position: absolute; left: -9999px; } #preload { background-image: url(image.png); visibility: hidden; } #preload { background-image: url(image.png); background-repeat: no-repeat; background-position: -9999px -9999px; }
Comments
Subscribe to comments
You need to login to post a comment.

Mixing this method with multiple background images, as shown here : http://snipplr.com/view/2122/css-image-preloader/ seems to work perfectly in every browser I've tested (Firefox, Safari, IE, Opera).
Thanx!