The idea is that the /something/index.html page loads. But, before I show it, its dependencies (css and images in this case) are preloaded.
Modernizr.load({ load: ['/something/styles.css', '/something/image1.jpg'], complete: showFile });
I looked in the Paul Irish "imagesLoaded" jQuery plug-in, but I prefer the ease of use of the bootloader that I already have. I know that YepNope (and Modernizr.load) are not developers as general preloaders, but I feel that this is the cleanest way to do this.
It would take any thoughts on how to implement image preloading in loading the Modernizr / YepNope script.
pg
source share