This is a migrated thread and some comments may be shown as answers.

CDN - Possible to specify google's CDN for JQuery

5 Answers 167 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 08 Dec 2009, 11:26 PM
Hi,

Is it possible to specify another CDN for JQuery?

The Google CDN is pretty well used, so i would like to use that CDN for jQuery - as many people may already have that in their cache?

Thanks,


Richard

5 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 14 Dec 2009, 09:25 AM
Hello Richard,

You should be able to use Google's CDN for JQuery if you prefer by alterning the JQuery scripts registration in the following way:

<telerik:RadScriptManager runat="server" ID="RadScriptManager1"
    <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"
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryPlugins.js" /> 
    </Scripts
</telerik:RadScriptManager>

Best regards,

Sebastian
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paul
Top achievements
Rank 1
answered on 22 Feb 2010, 05:32 PM

If doing this, what best practice do you suggest for replacing the lines:
 

$telerik.$ = jQuery.noConflict(true);

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();

Thanks

Paul


0
T. Tsonev
Telerik team
answered on 23 Feb 2010, 10:21 AM
Hello Paul,

In fact those are not needed when using external jQuery scripts.

I hope this helps.

Greetings,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
ShaneUlker
Top achievements
Rank 1
answered on 03 Jan 2011, 02:08 AM
Hi,
do i still need to add reference to 
Telerik.Web.UI.Common.jQueryInclude.js
if i am using google cdn for jquery and jqueryplugins ?

thanks
0
T. Tsonev
Telerik team
answered on 03 Jan 2011, 09:00 AM
Hello Richard,

No, you don't need jQueryInclude.js when you're using the "regular" jQuery. It's only needed when you want to expose the embedded jQuery version to the global $ variable.

I hope this helps.

Best Regards,
Tsvetomir Tsonev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Paul
Top achievements
Rank 1
T. Tsonev
Telerik team
ShaneUlker
Top achievements
Rank 1
Share this question
or