I was looking at potential ways to include jQuery and Paul Grenier's Accordeon Quick launch (https://www.nothingbutsharepoint.com/sites/eusp/Pages/jquery-for-everyone-accordion-left-nav-with-cookies-speed-test.aspx) into a site master page and came across this blog post:
Christophe commented to the post:
- when you just use jQuery on one specific page
- when you only need jQuery after the page has loaded
- when you are not even sure if the user will use your jQuery customization on the page ( tooltips for example)
I added 2 script references to the master page (for jQuery and Paul's script), and was wondering what others thought of this approach.
I removed all my jQuery script references from my CEWPs, many of which use jQuery, and they still run fine (because jQuery is now on every page by way of the master page).
I don't use jQuery scripts on every page in my site but I use it on many pages. Is there another approach that I should consider?