title: Jquery ajax unload page error on chrome
body: <p>Only event unload page call function ajax this die </p>
  
  <pre><code>$( window ).on('unload',function(e) {
    e.preventDefault();
    ajax_delete_support_models(12);
  });
  </code></pre>
  
  <p>-ajax run  </p>
  
  <pre><code>function ajax_delete_support_models(sm_id){
  var token = getTokenFromBrown();
  var data_submit = {'csrfmiddlewaretoken':token,'sm_id':sm_id}
  var ajax_data =  $.ajax({
      type: "POST",
      url: 'http://localhost/delete-support-models/',
      data :data_submit,
      async : false,
      error: function (request, status, error) {
              console.log(request);
      },
      success: function(data){
              console.log('ok success')
      }
  });
  </code></pre>
  
  <p>}</p>
  
  <p>-- debug this</p>
  
  <p>code: 19</p>
  
  <p>message: "A network error occurred."</p>
  
  <p>name: "NetworkError"</p>
  
  <ul>
  <li>I using jquery ajax unload page error please help me</li>
  </ul>