jQuery catch img
<p>We have a script used for each <code>.item</code>:</p>

<pre><code>$(".item").each(function(){
    item_link = "http://...";
    block = $('.block', this);
    $.get(item_link, function(data) {
        var src = $('img.slide', data).attr('src');
        block.html(src);
    });
});
</code></pre>

<p><code>item_link</code> variable is uniquie for each query.</p>

<p>There can be 100 <code>.item</code> or more.</p>

<p>The problem is - server has limit on connections at the same time, that why some <code>.item</code> get <code>var src</code>, some not.</p>

<p>The best solution is to use just one <code>.get</code> at the same time. I think there should be some counter, if <code>.get</code> is finished - it gives message "<strong>I'm finished, you can start</strong>" to the next <code>.get</code> and so on.</p>

<p><strong>How to do that?</strong></p>

<p>Thanks.</p>
