title: jQuery Post and Redirect on Success
body: <p>I have searched the internet for an answer and so far found lots of different ones.</p>
  
  <p>Say I have a jQuery Post that looks something like this:</p>
  
  <pre><code>$.post('test.php',{data:data},function(){
      document.location = 'success.php';
  })
  </code></pre>
  
  <p>Then on my test.php page I have a bunch of database inserts. Will this code still continue to execute once the page redirects?</p>
  
  <p>I would have thought it should but I have so far found some people saying it will, others that it won't and others saying it might.</p>
  
  <p>Could someone please clear this up for me?</p>