title: Load div last after page load
body: <p>Ok So I have a div that loads some data and makes the entire page load slowly. Fortunately this data can wait and I would like to load it last. I've seen the other posts like this but need a bit more help getting it to work as I am fairly inexperienced.</p>
  
  <p>So for example I have:</p>
  
  <pre><code>&lt;div id="stuff"&gt;
  &lt;?php Some PHP Here ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now I have </p>
  
  <pre><code>$(window).load(function () {
      $('#stuff').load('');
  });
  </code></pre>
  
  <p>A few questions...Do I create an empty div and then fill it with the data or can I have the data in there and then specify that to load last, which would be preferred if possible.</p>
  
  <p>I understand I can have a webpage loaded like <code>$('#stuff').load('stuff.php');</code> but I use a variable inside the div so how would I pass it to that load function and into the php page?</p>
  
  <p>I just don't know how to pass variables up to the javascript everytime that div is loaded as it's in a while loop.</p>
  
  <p>Thanks for the help.</p>