Jquery - Can I place my jquery code in a script at the end of the html body?
<p>Will the DOM definitely be ready if I place my jquery code right before the <code>&lt;/body&gt;</code> tag?  </p>

<p>I have some jquery code and when I put it in the $.ready() function I can see a flash of what the page looks like before the javascript code is run.</p>

<p>However, if I put the code right before the <code>&lt;/body&gt;</code> tag then I only see what the page looks like after the javascript is run.  I used timers to see the time difference, and the code put before the end of the <code>&lt;/body&gt;</code> executed 300ms sooner than the code in $.ready.</p>

<p>EDIT:If the DOM is reliably ready when i call my code before the <code>&lt;/body&gt;</code> tag, what is the benefit to putting my code in $.ready, considering that my javascript will execute sooner if I put it before <code>&lt;/body&gt;</code>?  </p>
