title: jquery wait for multiple complete events
body: <p>I want to use jQuery's <code>load</code> function to load some content into a div, and I want to also call jQuery's <code>animate</code> function.</p>
  
  <pre><code>$('#div1').load('...', function() {
      // load complete
  });
  
  $('html,body').animate({
      ...: ...}, ..., '...', function(){
      // animate complete
  });
  </code></pre>
  
  <p>I don't want to wait for <code>load</code> to complete before calling <code>animate</code> or vice versa.</p>
  
  <p>Following this I want to call a third function, but I don't want to call it until the complete event for both the <code>load</code> and the <code>animate</code> have been fired.  </p>
  
  <p>How can I do this?</p>