More in this section

Forums / Developing with Sitefinity / No MicrosoftAjax Please

No MicrosoftAjax Please

4 posts, 0 answered
  1. jcrichto
    jcrichto avatar
    35 posts
    Registered:
    14 Aug 2012
    06 Feb 2009
    Link to this post
    I have my own custom ajax methodology for the front end of the website and I don't want the MicrosoftAjax loading on every page as it creates a huge performance hit. How can I keep Sitefinity from loading these pieces in my website?

    I don't need this stuff....
    <script src="/WebResource.axd?d=d6DralmRGpshZZCcZ49O_g2&amp;t=633650280897202500" type="text/javascript"></script>
    <script src="/ScriptResource.axd?d=gt_E-HzVM_BFdzBz9I1YEEyA7M9sbY6CF7lsA3yBo_HA8pt3pzImDDytq79YE21n0&amp;t=633608890640000000" type="text/javascript"></script>
    <script src="/ScriptResource.axd?d=gt_E-HzVM_BFdzBz9I1YEEyA7M9sbY6CF7lsA3yBo_F405wLO7SwITHwvsXbvA0gmbkQovBcoOFgMvyLoxvO-w2&amp;t=633608890640000000" type="text/javascript"></script>

    // Copyright (C) Microsoft Corporation. All rights reserved.
    //-----------------------------------------------------------------------
    // MicrosoftAjax.js
    // Microsoft AJAX Framework.

    Thanks,

    Jeremy

  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    07 Feb 2009
    Link to this post
    the ajax framework is compressed, so you really shouldn't be getting that big of a performance hit...

    also remember you can replace the scriptmanager with radscriptmanager, then you'll be using telerik's scriptmanager, and this one will combine and compress all of the ajax scripts into one file for even more optimization...

    hoewever, if your site doesn't use ajax at all, then you can remove the script manager from the master page in App_Master. if you do this, you won't be able to use any of the rad controls like menu, tab, etc since they rely on ajax...
  3. jcrichto
    jcrichto avatar
    35 posts
    Registered:
    14 Aug 2012
    07 Feb 2009
    Link to this post
    Thanks for your reply.  Yes, I did figure this out already.  I have custom navigation controls and thus we have very little use for controls that need .NET Ajax on the front-end.  Whenever we might need it, we will create a custom template for that.  Also, we use jQuery and custom handlers for all front-end Ajax.

    The performance hit isn't significant for a typical .NET page load.  However, I guess our idea of "huge" is exaggerated a bit.  It was more like an extra 300-400ms that I was able to save...thus I believe it was worth mitigating.

    Thanks,

    Jeremy


  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    09 Feb 2009
    Link to this post
    Hello Jeremy,

    Is this the debug version of the Ajax framework? The JavaScript is several times larger than the "release" version. You can check this by looking at the web.config file:
    <system.web>   
    ...   
        <compilation debug="true">   
    ...   
    </system.web>   
     

    The debug mode should be always set to false when you release the web site.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered