Telerik blogs

With our next service pack you will be able to compress your entire AJAX traffic completely codeless with a single web.config setting:

...
<httpModules> 
  <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
</httpModules> 
...
  <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    --> 
  <system.webServer> 
    <modules> 
       <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
    </modules> 
...

Features:
Support for all traditional ajax requests including RadAjaxManager, RadAjaxPanel, plain UpdatePanel, etc.
Support for all WebService requests with content type "application/json"
Support for all modern browsers including IE7, FireFox, Chrome, etc. IE6 is not supported however you will not get any errors - just uncompressed response!

Limitations:
Will not support Microsoft ASP.NET AJAX 1.0 (available only for .NET 3.5)
Will not support PageMethods

The module will work also without any problems with IIS7 compression!

To check what is the real benefit I've made small demo with two grids:

- first grid bound to LinqDataSource and ajaxified using RadAjaxManager (traditional ajax)

- second grid bound to a WebService (client-binding) with pure JSON response

The result? Page to page two Northwind Customers table with ten records per page:

- traditional ajax: Bytes Received: 3,436 (uncompressed 7,842)
- JSON: Bytes Received: 1,523 (uncompressed 2,965)

Enjoy!

[Live | Download]


About the Author

Vladimir Enchev

is Director of Engineering, Native Mobile UI & Frameworks

Comments

Comments are disabled in preview mode.