I am referencing jQUery from my MasterPage as follows:
<SharePointWebControls:ScriptLink runat="server" Name="/_LAYOUTS/myprojIntranet/js/jquery-1.7.1.min.js" Localizable="false"/>
And in my webpart I reference it as:
ScriptLink.Register(Page, "/_Layouts/myproj2/js/jquery-1.7.1.min.js", false);
I have two copies of the file on my page. This must be because even though the content of the file is the same the references are different.
What is the best way to reference jQuery and only include it once? I am trying to make it so my features are not dependant on each other to run. Especially WebParts should not rely on the branding feature.
Should I create a jQuery feature and make my web part feature and my branding feature reliant on that?