Unobtrusive javascript : <script> at the top or the bottom of the html code ?

Posted by e-satis on Stack Overflow See other posts from Stack Overflow or by e-satis
Published on 2008-09-27T12:02:28Z Indexed on 2010/04/23 9:33 UTC
Read the original article Hit count: 226

I've recently read the Yahoo manifesto Best Practices for Speeding Up Your Web Site. They recommend to put the javascript inclusion at the bottom of the HTML code when we can.

But where exactly and when ?

Should we put it before closing </html> or after ? And above all, when should we still put it in the <head> section ?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about best-practices