Originally Posted by rnd me
you can put them at the top and use the defer and async attribs to achieve the same perceived-performance benefits as a script placed before the closing body tag.
1. You would use defer OR async - using both together doesn't make any sense since there the defer overrides the async.
2. Both of these attributes are relatively new and so not all browsers currently support them. This means that if you do use either of them then you need to allow for the fact that some browsers will try to run the scripts straight away.
3. document.ready becomes completely unnecessary if you place the scripts at the bottom of the body. You then avoid having to wait for the rest of the scripts to load before you can run the ones that are already loaded. This is the benefit of placing the scripts at the bottom that you don't get with any other placement.
Helping others to solve their computer problem at http://www.felgall.com/