$(document).ajaxStart(function(){ $("#selector").css("display", "block"); }); $(document).ajaxComplete(function(){ $("#selector").css("display", "none"); });
//when document load and complete all ajax response this event will fire only one time $(document).ajaxStop(function(){ alert("All AJAX requests completed"); });