title: Jquery : Wait for the toastr notification to end then reload
body: <p>I am using ajax because of the modal form,
  I have a toastr notification to show on the ajax success.</p>
  
  <p><code>toastr.success("We will get back to you with response, Thanks !");</code></p>
  
  <p>And then :
  <code>window.location.reload();</code></p>
  
  <p>How can i make it to end the notification first and then relaod.
  I found something but it quickly reloads the page :</p>
  
  <pre><code>$.when( toastr.success("We will get back to you with response, Thanks !") ).then(function( data, textStatus, jqXHR ) {
      window.location.reload();
  });
  </code></pre>
  
  <p>Is there any other suitable/Best practice way ?</p>