jQuery in Action
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » HTML and JavaScript
 
RSS feed
 
New topic
Author

Is there any difference if we mentin the script tags inside the Head Tag and the body Tag :

Ravi Kiran V
Ranch Hand

Joined: Apr 18, 2009
Messages: 1203

Hi

Is there any difference if we mentin the script tags inside the Head Tag and the body Tag :


Thank you.

I tried to change the world, but I couldn’t find the source code
Eric Pascarello
author
Sheriff

Joined: Nov 08, 2001
Messages: 13581

Yes because they fire at different times if you are not waiting to onload/document ready.

If you want to follow what Yahoo says: http://developer.yahoo.com/performance/rules.html#js_bottom

Eric

Race Schedule for 2010 for this running geek:
* National Half Marathon - 03/20 [1:44:51] * Frederick Marathon - 05/02 * Baltimore Marathon - 10/16 *
 
jQuery in Action
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » HTML and JavaScript
 
RSS feed
 
New topic
jQuery in Action

.