function PreloadImages(prefix, images) { for (var i = 0; i < images.length; i++) { new Image().src = prefix + images[i]; } }