head element, and up to now, as far as you know, it has worked just fine for you.
body tag instead.
There are a number of reasons why this way of doing it is attractive:
- There’s no need to have a check if the DOM is loaded, since by having the scripts at the end, you know for sure it is.
It is also a recommended by Yahoo’s Best Practices for Speeding Up Your Web Site: Put Scripts at the Bottom.