Fotiman - 3:14 pm on Nov 14, 2012 (gmt 0)
With practice of putting js at end of body (or even higher), is waiting for onload obsolete ?
That's a good question, which probably deserves it's own thread. Here's my short answer:
Putting scripts just before the closing </body> tag is almost equivalent to waiting for the onload event, but assets like images might not be fully loaded yet. In most cases, waiting for all the assets is not useful. As far as DOM manipulation, any elements that have been defined prior to the scripts just before the closing </body> will be accessible via the DOM when those scripts run.