Most likely you’ve been taught to put your javascript <script> tags in the <head>. Well, according to the Yahoo! Exceptional Performance team, you shouldn’t. In fact, they advocate that you should place your javascript <script> tags at the very bottom of your document—just above the </body> closing tag.
If external javascript files are included in the <head>, the browser downloads those js files before rendering the rest of the page. Who wants to wait? If you include the scripts at the bottom of your document, the page loads up then fetches the scripts. In most cases, this is desirable.
<head> tag.Thanks to Robert Nyman for the reminder.
My name is Jon. I live in Kansas City, MO. I'm married to Janette. We have a little white dog named Stella. I'm the co-owner and lead-developer of Storenvy.com, an online store system and marketplace for bands, clothing companies and everyone else.
#2--add my blog to your favorites.