title: Execute php (wordpress calls) which generates html after page load
body: <p>I have a wordpress blog in a sub-directory on my site and display a few of the lastest posts on my homepage. To do that a use the following code</p>
  
  <pre><code>&lt;?php
  // Include WordPress 
  define('WP_USE_THEMES', false);
  require('blog/wp-load.php');
  query_posts('showposts=1');
  ?&gt;
  &lt;?php
  require('blog/wp-blog-header.php');
  ?&gt;
  &lt;?php query_posts('showposts=4'); ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;
  &lt;h5&gt;&lt;?php the_title(); ?&gt;&lt;/h5&gt;
  &lt;p&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_excerpt(); ?&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;?php endwhile;?&gt;
  </code></pre>
  
  <p>I've been trying to figure out if its possible execute this code after the page has loaded, because this is slowing down my page.
  I've tried using the body onLoad function, which does execute the code correctly but the generated html doesn't display</p>
  
  <pre><code>&lt;body onLoad="init();"&gt;
  
  &lt;script language="javascript"&gt;
  function init()
  {
  ABOVE CODE IN HERE
  }
  &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Can anyone tell me what to do</p>