This is a migrated thread and some comments may be shown as answers.

Is it possible to enable compression for WebResource.axd?

2 Answers 283 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 25 Jul 2011, 11:02 PM
Hi Telerik,

I am going through performance tuning for my ASP.NET AJAX web project. After enabling RadCompression, using RadStyleSheetManager to compress my CSS, and RadScriptManager to compress my JavaScript, I still receive one 'warning':

  1. Enable gzip compression (1)
    1. Compressing the following resources with gzip could reduce their transfer size by about two thirds (~14.14KB):
      1. WebResource.axd could save ~14.14KB

Is this possible, or is it just complaining about the auto-generated...ness of the file?

EDIT: I guess while we're at it I might as well ask about the others --

There's a LOT of excess, runtime-generated CSS generated and I'm not sure if I can do anything about it..

  1. Remove unused CSS rules (465)
    1. 419.86KB (93%) of CSS is not used by the current page.
      1. Telerik.Web.UI.WebResource.axd: 354.79KB (92%) is not used by the current page.
      2. Dashboard.aspx: 65.07KB (100%) is not used by the current page.


Sean

2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 28 Jul 2011, 05:16 PM
Hi Sean,

The first warning is for a web resource (requested through WebResource.axd) that has not been compressed. The rest of the resources, those requested through Telerik.Web.UI.WebResource.axd are compressed because our handler does so. In order to compress the first type of resource you can use RadCompression specifically configured to catch WebResource.axds or configure your web server manually.

The second case is more curious. Our controls output only the CSS files, which they require; otherwise they will not be displayed properly. So I am not sure why the warning is raised.

Could you please provide more information about the second case, e.g. which are the controls on the page having the warning and what is the response returned by the handler? Alternatively you can stop style sheet combining in RadStyleSheetManager (EnableStyleSheetCombine=false) and detect which exactly resources are raising the warning and again inspecting their response.

Kind regards,
Simon
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.

0
dipak
Top achievements
Rank 1
answered on 02 Oct 2013, 07:06 PM

regarding to #2 message. That be because of some of style on the page you viewing does not need css but rest of page need it.  even your hidden element like radgrid would also show that all .RadGrid classes are not needed.

Tags
General Discussions
Asked by
Sean
Top achievements
Rank 2
Answers by
Simon
Telerik team
dipak
Top achievements
Rank 1
Share this question
or