Preloading images with CSS, not Javascript

November 10th, 2006, 12:49

Over on that web development forum I frequent, Herkalees has posted about a great way to preload images using css instead of using Javascript. It’s as simple as loading a div, containing the images as background images, and giving the div no width or height. I think this is a pretty clever solution, as even though many users may turn off Javascript for whatever reason they choose, very few people would turn off CSS.

Leave a response

Your response:

Categories