Como saber se o Ajax está funcionando

// site.js
$(function() {
    window.ajax_loading = false;
    $.hasAjaxRunning = function() {
        return window.ajax_loading;
    };
    $(document).ajaxStart(function() {
        window.ajax_loading = true;
      	console.log('started')
    });
    $(document).ajaxStop(function() {
        window.ajax_loading = false;
      	console.log('stopped')
    });
});
//logs in dev console whenever an ajax process starts and/or stops
Poor Pintail