title: Reload when setTimeout function finishes
body: <p>I want to reload window after a this custom function finishes:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function(){
      setTimeout(function () {
          $('#order_form').dolPopupHide({});
      }, 3000);
      //window.location.reload();
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Is there a way I can add the reload to the setTimeout function so it doesn't run until the timeout is over?</p>