ajax.complete(handler) example jquery

JavaScript
//when document load and complete all ajax response this event will fire only one time
$(document).ajaxStop(function(){
  alert("All AJAX requests completed");
});
Source

Also in JavaScript: