jquery set image src and preload code example
Example: jquery preload images
//preloading Images with jQuery
function preloadImages(images) {
$(images).each(function(){
$('<img/>')[0].src = this;
});
}
preloadImages([
'images/image1.png',
'images/image2.png'
]);