var image = new Image();
image.src = "image.jpg";
new Image().src = "image.jpg";
function preloadImages() {
for (var i = 0; i < arguments.length; i++) {
new Image().src = arguments[i];
}
}
preloadImages(
"images-1.jpg",
"images-2.jpg",
"images-3.jpg"
);