title: Execute Alert Before location.reload
body: <p>I am using jQuery confirm min js. and use alert in my ajax code.</p>
  
  <p>The problem is when my ajax code runs first it gives priority to locationReload and reload. I want to run alert first then reload.</p>
  
  <p>One thing I note that if I use Simple <code>ALERT('some')</code> so it works but this can't.</p>
  
  <p>My code is as follow</p>
  
  <pre><code>success:   function(data) { 
    $.alert({
        title: 'Message!',
        content: data,
        theme: 'material',
        animation: 'zoom',
        animationBounce: 2.5, 
    });
    //$('#thmb_prev').html(data);
    $('#loader').hide();
    location.reload();
  }
  </code></pre>