Where should JavaScript be put?

Posted by NessDan on Stack Overflow See other posts from Stack Overflow or by NessDan
Published on 2010-04-18T01:36:00Z Indexed on 2010/04/18 1:43 UTC
Read the original article Hit count: 447

I've been doing a little JavaScript (well, more like jQuery) for a while now and one thing I've always been confused about is where I should put my scripts, in the <head> tag or in the <body> tag.

If anyone could clarify this issue, that'd be great. An example of what should go where would be perfect.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery