Is there a way to check if there's ajax request in progress?
Something like:
if ( $.ajax.inProgress ){ do this; } else { do that; }
ajaxjavascriptjquery
Is there a way to check if there's ajax request in progress?
Something like:
if ( $.ajax.inProgress ){ do this; } else { do that; }
Best Answer
yes there is
the beforeSend will do the process you need to do when the ajax request has just started and complete will be called when the ajax request is complete.
documentation