posted 22 years ago
True, plus it's nice to hide your javascript code somewhat, if you have concerns about people stealing your code, or if you have any info (password, etc) that you want to hide. However, a knowledgeable user could find his way to your javascript page anyway by finding your reference to the js file, so it isn't perfect security (or even that good).
I tend to use this mostly in the interests of simplification. If you keep your javascript external, and use includes for headers and footers, etc, and use style sheets, you can end up with a very simple content page.
pardon me, but you've obviously mistaken me for someone who gives a damn...