title: JS - location reload with delay after function executed
body: <p>I am running a JS / AJAX script to update data in my table and once the script is done, I would like to reload the page. However, with my current code, it reloads immediately, is there any way to delay the reload for 3 secs?</p>
  
  <pre><code>// close modal and refresh page
  $('#EditRecordModal').modal('hide');
  location.reload();
  </code></pre>
  
  <p>Thanks</p>