Prevent Duplicate jQuery

4 posts, 0 answers
  1. Scott
    Scott avatar
    5 posts
    Member since:
    Aug 2011

    Posted 11 Nov 2011 Link to this post

    I am using the Telerik ScriptManager with EnableCDN="True", but I want to load jQuery from Google's CDN instead since my page will not work if I rely on the jQuery loaded only from the Telerik Scrip Manager (I'm guessing it's an order of operations problem). 

    Is there any way to prevent the Telerik ScriptManager from loading jQuery and just have it rely on the already loaded Google CDN jQuery?
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 15 Nov 2011 Link to this post

    Hi Scott,

    Yes, you could override our path to jQuery with Google CDN's path in this way:
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
       <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>
    </telerik:RadScriptManager>

    I hope this helps.

    Kind regards,
    Simon
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Felipe Casanova
    Felipe Casanova avatar
    56 posts
    Member since:
    Feb 2010

    Posted 13 Apr 2012 Link to this post

    If I do this nearly everything works. I have a problem in the Scheduler (using a web service) with deleting an appointment. I get $telerik.$.modal is not defined so I presume I'm missing javascript components from the Popupscripts.js?

    I'm loading jquery 1.7.1 separately in order to allow for other components to work. Using ASP.NET AJAX 2011.3 1305.

    Any thoughts on how I might be able to do this and have all the components loaded for the scheduler? If I remove the scriptreferences and load multiple 1.7.1's (Telerik and the *normal* one) then it works but I don't want multiple jquery files. It bugs me.

    Thanks

  5. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 17 Apr 2012 Link to this post

    Hello, Matt.

    Could you open a separate support thread and attach in it a sample of your project that has the problematic scheduler?

    Your case will need some digging in and the community forums are not quite fit for the task, as they do not allow the inclusion of zip files, per say.

    Regards,
    Ivan Zhekov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top