Nitobi Toolkit comes with a convenient helper method to scour all the stylesheets on a page and pre-load all the images. This has the advantage of making any images used in CSS come up right away when they are called, instead of having to wait for them to be downloaded - really improving the user experience.
By calling precacheImages() with no arguments, it will loop through all your stylesheets and attempt to pre-load every image. If you pass a reference to a particular stylesheet, it will just do that one:
This will just pre-load the images in the nitobi.tabstrip.css referenced in our header.
Comments:
Knowledgebase
To be notified of new articles when they're available, subscribe to our RSS feed.