Translator
Categories
Archives

How to Preload Images with CSS

This is a simple way to preload a few images using only CSS.

#imagePreload {
       display: inline;
       height: 0px;
       width: 0px;
       background-image: url(imagePath1.extension);
       background-image: url(imagePath2.extension);
       background-image: url(imagePath3.extension);
       background-image: url(imagePath4.extension);
       background-image: url();
}

One Response to “How to Preload Images with CSS”

Leave a Reply