title: Running code after page load while using ob_implicit_flush
body: <p>I'm trying to run code after the page has finished loading while pushing content as it's ready.</p>
  <p>Here's my current script:</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php      
  ob_implicit_flush(1);
  ob_end_clean();
  ob_start();
  ignore_user_abort(1);
  echo 'Hello'; // User will see this
  ob_flush();
  flush();
  echo 'World'; // User won't see this
  </code></pre>
  <p>The goal is for something like this:</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  echo '1'; // Send to user right away
  sleep(1);
  echo '2'; // Send to user as soon as sleep(1) is done
  echo '3'; // Don't show user at all
  </code></pre>
  <p>At the moment it's pushing content as it's ready, but it isn't stopping the page load.</p>