views:

60

answers:

0

Hi, I managed to do preloding of 1 image like this:

var img = new Image();

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

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!