jquery preloading multiple images
<p>I managed to do preloding of 1 image like this:</p>

<pre><code>var img = new Image();

$(img).load(function () {
    //do something after
}).attr('src', response.image1);
</code></pre>

<p>How can I make the same for multiple pictures. Let's assume that my response is a json object which has several image sources.
Thanks!</p>
