$.ajaxSetup()
$.ajaxSetup({ beforeSend: function() { // show progress spinner },complete: function() { // hide progress spinner } });