Personally, I prefer to use JavaScript tags for JavaScript. For example, if you want to create a link that sends an AJAX request and updates the DIV with a response, itβs easier for me to write
<g:remoteLink action="show" id="1" update="myDiv" onLoading="showSpinner();">Click Me</g:remoteLink>
than the corresponding javascript.
If you have the JQuery plugin installed and you decide to replace JQuery with a prototype (for example), the tags above should work as soon as you replace the JQuery plugin with the Prototype plugin. This would not be possible if you just copied .js files to web-app/js (instead of using plugins).
Ultimately, if you use JS plugins, your application "knows" which JS libraries are using. Other plugins (e.g. resources ) can then use this information to your advantage.
source share