There are a few ways to preload images in the browser. You can use only CSS - but it leaves a bit of "dirt" on your code, as we need to put some tags to load.
<div id="preload1"></div>
<div id="preload2"></div>
...
#preload1{
background:url('http://lorempixel.com/1366/590/fashion/2') no-repeat -9999px -9999px;
}
#preload2{
background:url('http://lorempixel.com/1366/590/fashion/3') no-repeat -9999px -9999px;
}
...
You can also use JavaScript:
imagem1 = new Image();
imagem1.src = "http://lorempixel.com/1366/590/fashion/2";
imagem2 = new Image();
imagem2.src = "http://lorempixel.com/1366/590/fashion/2";
JavaScript can make things more sophisticated. Let's use an array:
preload = [
"http://lorempixel.com/1366/590/fashion/2",
"http://lorempixel.com/1366/590/fashion/3",
"http://lorempixel.com/1366/590/fashion/4"
];
imagens = [];
for(i in preload){
imagens[i] = new Image();
imagens[i].src = preload[i]; //carrega a imagem corresponte ao número
}