Background - I added a webpart to hold my jquery script on a single Sharepoint page. It works fine. In the HTML of the source editor, the script begins:
Now I want to put that same jquery in the master page to use it site wide.
I copied what I had in the webpart and saved it as js to /scripts/outboundlinks.js
In my master page, I put the following just before the closing head tag:
and saved / approved my master page.
I'm surfing about on my site and the javascipt is not working. Looking at the loaded scripts in IE developer tool I am getting an error that point to the 1st line referencing the external js library.
What does the master page not like about my script that a webpart with this script will allow? Is it the external reference to jquery? Do I have to have jquery library local to my sharepoint site?
I could just try this - but I am interested in hearing an explanation for this.