– Simplicity – no other files to create, manage & deploy
– Containment (of sort) – all functions required by the page are right there… in the page
– Increases cacheability
– Compression and bandwidth reduction
– Can create & easily switch between debug and release script versions
– Encourages to create reusable functions, rather than hardcoding page specific logic/control ids.
– Allows for logical grouping of related functions per .js file (regardless of the pages they are used on)
If you can think of other points, don’t hesitate to share them with others by posting them as a comment at the bottom of this page.
NOTE: To avoid SPAM, I configured this blog to require approval for all comments. I try to check for pending comments several times/day, and, at a minimum, once/day.