title: jQuery Limit The Number Of Simultaneous AJAX Requests
body: <p>so I have a series of AJAX events I would like to fire, but I want to limit the number of simultaneous requests to 5, and queue up the rest. So for example, I have the following:</p>
  
  <pre><code> $("div.server").each(function() {
       $.ajax(....);
   });
  </code></pre>
  
  <p>So there may be 100 divs with the class <code>server</code>, but I want to only run 5 requests at any given time. Once a request finishes it should proceed to the next.</p>
  
  <p>What is the best way to do this?</p>