The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Preload Images Automatically from CSS
This script parses through linked and imported stylesheets and creates an array of all the image urls they contain. Then it loops through the array of urls and creates an image object for each one so they'll be cached and ready for later use. Using this script means we only have to worry about specifying background images and states in our CSS files, and the script takes care of the rest!
Just link up the script and call:
$.preloadCssImages();
This will default to a root "images" directory for finding images. To specify a different images directory, pass it in via the options :
$.preloadCssImages({ 'imgDir': 'myImagesDirectory' });
script source:
http://www.filamentgroup.com/examples/preloadImages/scripts/preloadCssIm...
