Is there any easy way to abandon all outstanding jQuery AJAX requests? My application is capable of pulling off a lot of simultaneous requests, so race becomes problematic. I’ve put in hackish solutions (namely, putting in a flag that is checked upon request completion), but it would be much nicer to get a global stop all outstanding requests function.
Is there any easy way to abandon all outstanding jQuery AJAX requests? My application
Share
Assign every ajax request as an element of an array:
And to kill: