Use jQuery.when for batch async call