If I include jQuery in a RadScriptManager like this (ignore the fact that I'm loading a different version, that just makes the problem easier to spot):
And then add a Telerik control to the page:
Then if you search among the files loaded (I used search in the Firebug script tab with the multiple files option ticked - search for 'jquery.org') then you'll see that there are two copies of jQuery loaded - the 1.8.0 one in a ScriptResource.axd file and the 1.7.2 one in a Telerik.Web.UI.WebResource.axd file.
If you turn script combining off then only one version of jQuery is loaded, the 1.8.0 one, however you then of course see about 12 separate script requests.
I'd like to use script combining, but I'd like to only load jquery once, how can I do this?
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
EnableScriptCombine
=
"true"
>
<
CompositeScript
>
<
Scripts
>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
Path
=
"~/SCRIPTs/jquery-1.8.0.min.js"
/>
</
Scripts
>
</
CompositeScript
>
</
telerik:RadScriptManager
>
And then add a Telerik control to the page:
<
telerik:RadDateTimePicker
ID
=
"RadDateTimePicker1"
runat
=
"server"
>
</
telerik:RadDateTimePicker
>
Then if you search among the files loaded (I used search in the Firebug script tab with the multiple files option ticked - search for 'jquery.org') then you'll see that there are two copies of jQuery loaded - the 1.8.0 one in a ScriptResource.axd file and the 1.7.2 one in a Telerik.Web.UI.WebResource.axd file.
If you turn script combining off then only one version of jQuery is loaded, the 1.8.0 one, however you then of course see about 12 separate script requests.
I'd like to use script combining, but I'd like to only load jquery once, how can I do this?