Re:Don’t let jQuery’s $(document).ready() slow you down
by Encosia on Thursday August 19, 2010 @09:34AM
(#1617305)
Right, that's the crux of my overall point about .live(). Since it's using event delegation, the DOM elements don't need to be present at the time you declare it. If you have the opportunity to set up your .live() handlers early, you should.
But either way he makes a great point on the document.ready if your page depends on ajax or some sort of ui styling its probably best in the header script.