I want to use jQuery\'s load function to load some content into a div, and I want to also call jQuery\'s animate function.
$(\'#div
You'll have to keep count of how many of your events have completed, and then use that as a test in your callback:
var complete = 0;
$('#div1').load('...', function() {
complete++;
callback();
});
$('html,body').animate({
...: ...}, ..., '...', function(){
complete++;
callback();
});
function callback(){
if ( complete < 2 ) return;
// both are complete
}