Disable ajaxStart and ajaxStop events for a single request

To disable the ajaxStart and ajaxStop  events, add global: false in the request. Example:

$.ajax({
    url: '<your url>',
    success: function(data){
        console.log(data);
    }, 
    global: false,     // this makes sure ajaxStart is not triggered
    dataType: 'json'
});Code language: JavaScript (javascript)