Disable ajaxStart() and ajaxStop() for a specific request
问题 I am using .ajaxStart() and .ajaxStop() to show a modal while an ajax request is being made. (between start and stop) Now I'd like to add a longpoll function that keeps waiting for notifications, similar to the one on the left upper corner of this site. My problem now lies in disabling this modal only for the longpolling request.. Registering "loading screen" on and off handlers: $(document).ajaxStart(handleAjaxStart); $(document).ajaxStop(handleAjaxStop); My longpoll function: $.ajax({