Charlie Griefer wrote:

There's no functional difference between using an external .js file or
putting your JS in the page itself.  Arguably, it's easier to maintain if
it's well-organized in included files... but functionally no different.
Well, there's the advantage of the .js file being cached in the browser in
subsequent page requests... but other than that, functionally no different
:)

Well, unless you're using XHTML, that is. It's very hard to stay valid
using JS in the page itself, if the page is XHTML. So, if you do use
XHTML, then external JS is clearly the right thing, except for some simple setting of variables etc, that can be done reasonably safely in
XHTML.

--
Bertilo Wennergren <http://bertilow.com>

Reply via email to