title: Meteor.startup(func) - when is the DOM "ready" in Meteor?
body: <p><a href="http://docs.meteor.com/#meteor_startup" rel="nofollow">http://docs.meteor.com/#meteor_startup</a></p>
  
  <p>Concerning <code>Meteor.startup(func)</code></p>
  
  <blockquote>
    <p>On a client, the function will run as soon as the DOM is ready.</p>
  </blockquote>
  
  <p>At what point is the "DOM ready"?</p>
  
  <p>The reason why I ask is because you can have a Meteor template that uses many other templates (ie. other DOM elements) inside of it and have many other things loading at different times depending on how long those things take to load (ie. more DOM elements).</p>
  
  <p>In the past I've loaded Javascript files on Meteor.startup but they were still loaded too early because the entire DOM actually had not been loaded yet.</p>
  
  <pre><code>Meteor.startup( function() {
  
    //load JS files now
  
  });
  </code></pre>
  
  <p>So what does it mean by "DOM ready?" It most definitely does not mean "When the DOM is loaded in its entirety."</p>