title: Why in Chrome in onunload and onbeforeunload, is my XMLHTTPRequest being cancelled?
body: <p>Chrome Version 30.0.1599.101 m.</p>
  
  <p>I see there's another similar <a href="https://stackoverflow.com/questions/870623/ajax-or-jsonp-on-unload-with-safari-chrome">post</a> about this but it's not answered. The one "answer" talks about onbeforeunload working, but it does not.</p>
  
  <p><img src="https://i.stack.imgur.com/8dTzl.png" alt="Canceled request"></p>
  
  <p>Other similar posts but beforeunload and unload is still won't allow an ajax request.
  <a href="https://stackoverflow.com/questions/5462993/what-is-the-definitive-way-to-call-the-jquery-ajax-function-before-a-window-unlo">post 2</a>
  <a href="https://stackoverflow.com/questions/9235583/dont-have-time-to-send-get-request-on-window-unload">post 3</a>
  <a href="https://stackoverflow.com/questions/9234588/php-javascript-do-something-when-user-closes-page-or-browser/9234785#9234785">post 4</a>
  <a href="https://stackoverflow.com/questions/4802007/window-onbeforeunload-not-working-in-chrome">post 5</a></p>
  
  <p>What's the best way to do something like commit unsaved data before the browser is closed/page refreshed?</p>