CDN - Possible to specify google's CDN for JQuery

6 posts, 1 answers
  1. Richard
    Richard avatar
    38 posts
    Member since:
    Nov 2008

    Posted 08 Dec 2009 Link to this post

    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
  2. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 14 Dec 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul
    Paul avatar
    3 posts
    Member since:
    Jun 2009

    Posted 22 Feb 2010 Link to this post

    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


  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 23 Feb 2010 Link to this post

    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.
  6. ShaneUlker
    ShaneUlker avatar
    3 posts
    Member since:
    Sep 2004

    Posted 02 Jan 2011 Link to this post

    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
  7. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 03 Jan 2011 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017