title: What's the best way to retry an AJAX request on failure using jQuery?
body: <p>Pseudo code:</p>
  
  <pre><code>$(document).ajaxError(function(e, xhr, options, error) {
    xhr.retry()
  })
  </code></pre>
  
  <p>Even better would be some kind of exponential back-off</p>