jquery each timeout
$(window).load(function(){ var index=0; if(index>=$('img.loading').length){ clearInterval(intrvl); } intrvl=setInterval(function(){ $('img.loading').eq(index).attr('src',$('img.loading').eq(index).attr('data-src')); index++ },10); });
<img data-src="/resize/icons/auto/228/228/icon274.png" class="loading" src="/assets/images/ajax_loader.gif" alt=""/>