1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / AJAX Compression

AJAX Compression

6 posts, 0 answered
  1. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    17 Jun 2009
    Link to this post
    Hi,

    We have a web site developed in Sitefinity 3.6 community edition, in which we are using telerik radscript manager. Due to it the page sizes are going well above 300 KB. I wanted to know whether is there any kind of compression that can be applied on to the AJAX libraries used by Sitefinity, to bring the sizes further down ?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    17 Jun 2009
    Link to this post
    Hi Saumitra,

    You can use Telerik ASP.NET AJAX Compression. More information and description an be found at the following links

    Rad Compression for ASP.NET AJAX
    Optimization Tips: RadCompression Module
    Optimization Tip: RadCompression for ViewState
    HTTP Compression for your ASP.NET AJAX applications

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    18 Dec 2009
    Link to this post
    Hi,

    I've created a test site with Sitefinity Standard Edition 3.7 and using RadMenu on one of my pages. I've also used RadScriptManager on the default master page with following settings:

     

     

     

     

    <telerik:RadScriptManager ID="ScriptManager1" runat="server" OutputCompression="AutoDetect" ScriptMode="Release">  
     
    </telerik:RadScriptManager> 
     

    When I run the application I see two resource files being loaded. One is being compressed with Gzip compression as shown in the attached file (Telerik_WebResource_Compressed.JPG) but the other one is not (WebResource_Uncompressed.JPG). Why does RadCompression not compress all the resource files with the above mentioned setting ? How can I achieve the same ?

    Thanks,
    Saumitra

     

     

  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Dec 2009
    Link to this post
    Hi Saumitra,

    The compressed resource is compressed actually by the RadScriptManager, but not from the RadCompression. The RadScriptManager compresses every embedded resource associated with it, so most probably the other script is not processed by the RadScriptManager by default.

    The RadCompression though is not compressing  JS, Css plus all *.axd handlers are skipped. It only compresses the AJAX requests by default, with an exception of the initial page load. 

    Kind regards,
    Georgi
    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.
  5. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    21 Dec 2009
    Link to this post
    Hi Georgi,

    Does this mean that I would have to implement some other custom compression mechanism to compress the axd files?

    Regards,
    Saumitra
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    21 Dec 2009
    Link to this post
    Hi Saumitra,

    The question is not very simple, since we do not know where do the embedded resources come from. I am not sure if there is a global solution to that. 

    You may try with dynamic and static IIS Gzip compression though. 

    Greetings,
    Georgi
    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.
Register for webinar
6 posts, 0 answered