I use something like the following for handling an ajax loading timer:
$body = $("body"); $(document).on({ ajaxStart: function() { $body.addClass("loading"); }, ajaxStop: function() { $body.removeClass("loading"); } }); but there are some specific calls where I want this suppressed. How would I do this? I don't want to manually removed the loading class.