Use jQuery deferreds for AJAX requests