Return to Snippet

Revision: 57229
at May 23, 2012 01:21 by Narayon


Initial Code
$.each(["img/naboutus.png","img/nwhatwedo.png","img/ntheory.png","img/nportfolio.png","img/nclients.png","img/ncontacts.png"],function(i,url){
    var img = new Image();
    img.src = url;
});

Initial URL
http://stackoverflow.com/questions/9197134/jquery-image-replacement-depending-on-scroll-position-only-works-properly-after

Initial Description
this can run before $(document).ready event, since it doesn't rely on any DOM.

Initial Title
preload images on jquery

Initial Tags
jquery, images

Initial Language
jQuery