Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery and xhr.abort

When aborting an ajax request with the xhr that's passed back from the jQuery.ajax function, firebug shows that it's still trying to load that request. It doesn't block any more requests that are made, but it also doesn't show that it ever completes the request.

Is this just a firebug problem?

like image 773
Corey Hart Avatar asked Oct 14 '22 13:10

Corey Hart


1 Answers

It seems that this is just a firebug issue.

I set up a test case at jsbin to see how firebug reacted. If you look at the 'Net' tab, you can see the time and amount of data that was transferred for that request, this indicates that the connection is complete, even if the spinner is still bugging you in the console area.

Here is the test case: http://jsbin.com/isolo

I suggest going to http://jsbin.com/isolo/edit and commenting out each of the last lines as a single test case, and you can see how the Net tab speaks more truth.

like image 57
Alex Sexton Avatar answered Oct 18 '22 13:10

Alex Sexton