/ Published in: CSS
This is a really useful techniques for preloading images on your website. Just place this code after the body tag in the CSS file. Everytime you refer to this image in your CSS file the image will be loaded from cache.
Expand |
Embed | Plain Text
#preloadImages { width: 0px; height: 0px; display: inline; background-image: url(path/to/image1.jpg); background-image: url(path/to/image2.jpg); background-image: url(path/to/image3.jpg); background-image: url(path/to/image4.jpg); }
You need to login to post a comment.
