.ajaxStop() in jQuery

It will execute when all Ajax requests have completed.

.ajaxStop()

// an alert box will display when all AJAX requests have completed

$(document).ajaxStart(function(){
    $(this).html(“< img src='demo_wait.gif' />“);
});