title: jQuery callback when 3 methods are finished?
body: <p>I have 3  JS functions : </p>
  
  <pre><code>func1 ()
  {
      $.ajax(...,callback1)
  }
  
  
  func2 ()
  {
      $.ajax(...,callback2)
  }
  
  
  func3 ()
  {
      $.ajax(...,callback3)
  }
  </code></pre>
  
  <p>They are executed  like this :</p>
  
  <pre><code>func1();
  func2();
  func3();
  </code></pre>
  
  <p>Question how can I execute <code>mySummaryCallback()</code> after all 3 are <code>done</code> ?</p>
  
  <p>NB</p>
  
  <p>I could use a closure callback function which increase a value and then execute. but I can't touch the ajax callback functions. (<a href="https://stackoverflow.com/a/2911891/859154">https://stackoverflow.com/a/2911891/859154</a>)</p>