Unfortunately, the browser stop button does not affect AJAX requests. If you want to cancel the AJAX request, you can abort it as shown below:
var xhr = $.ajax( url: "http://someurl.org", success: function() { ... } ); xhr.abort();
The interrupt start button should be in your HTML, since the browser stop button cannot interrupt the request. If the user goes to another page, the browser will stop listening, and this happens when you call xhr.abort ().
John culviner
source share