js/or whatever in root. Having the scripts scattered in various hidden subdirs helps noone.
2/ Specifically for jQuery - please, do NOT try to load it unconditionally. Instead, I have been using this for a while and it works great:
Code: Select all
3/ Do NOT hardcode the jQuery version. Using
jquery-latest.min.jsin template files makes updating jQuery as simple as overwriting one file with latest jQuery version. Yeah, just one if you manage to centralize the scripts location.
Do NOT rename jQuery to something cryptic for whatever whacky reason. Guess what, e.g. this Wait At Registration mod bundles jQuery 1.3.2 - renamed as countdown.js and installed once per style. OMG, why? And guess what, works perfectly with 1.7.1
Besides the conflicts, you are causing possibly vulnerable versions of stuff getting totally unnoticed.
And - as a related side note, I do not find the current policy that does not allow using CDNs for this highly counter-productive. Given the authors inactivity and the validation queue delays, it is impossible to keep up the pace with upstream development. Updating jQuery core generally does not cause any issues, mods that hardcode jQuery 1.4.x or whatever work perfectly fine with 1.7.1).