title: jQuery queue $.post requests
body: <p>I have Action, that returns data for charts on page. It takes chartType parameter and returns charts data. Page uses jQuery and <code>$.post</code> function to call for it. Here is example: </p>
  
  <pre><code>var fillChart = function (chartData){ /* fill routine here */};
  
  $(function () {
      $.post(
         '/Charts/ChartsJson',
         'chartType=Type1', 
         fillChart, 
         'json'); 
  
      $.post(
         '/Charts/ChartsJson',
         'chartType=Type2', 
         fillChart, 
         'json');
  
      // other calls here [*]
  });
  </code></pre>
  
  <p>I have array of chartTypes, that should be processed. If I add all calls after commented line, then they all will be sent at one time. It's ok, if there are from 1 to 3 items. But if there are more items, then it's bad for performance. 
  <br/>Is there any way to restrict amount of simultaneously executed post requests?
  <br/>I know, that I could use callback of first post, which would invoke second, and so on... My question is: "Is there any other way?"</p>
  
  <p><strong>UPD:</strong> Each call is already partitioned. (And amount of items in my array is not always known.) This action return about 1000 complex elements per call, and different <code>chartType</code> says which table to use (and what logic for extraction data)<br />
  Total extraction of all data can take 20, even 40 seconds. So I want to display it on the go, as it's been processed.  </p>