For the jQuery AJAX calls (http://api.jquery.com/jQuery.getJSON/), we use the .fail()
callback to log JavaScript errors.
However, it looks like the .fail()
function also gets called, when a call is not yet finished, but aborted by leaving the website (tracking still works, however, since there is sometimes enough time such that window.onerror
gets triggered).
Now, tracking an aborted AJAX request is NOT want we want. We want to find out if the request does work (i.e. respond) or not.
Is there a possibility to differentiate between "AJAX call aborted" and "AJAX call without response"?