Andy Macourek
Top achievements
Rank 1
Andy Macourek
asked on 09 Feb 2010, 11:37 PM
On my page, I only have the following two controls RadScriptManager and RadComboBox. When the page loads the Telerik.Web.UI.WebResource.axd is 325K. How can I get this smaller. I have already tried adding RadCompression and it does not get smaller.
8 Answers, 1 is accepted
0
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 10 Feb 2010, 02:47 AM
That seems high...I made a blank page with the RadScriptManager and Combo being the only things on the page (compression enabled) and I come out @ 92k
You can strip the MSAjax out of the Webresource, and let that come down by itself so its not part of the same axd
Doing that dropped mine to 66k
...and then turning on the Telerik CDN dropped it to 8k
300+ sounds WAY high....can you post your page? Is there a masterpage with other controls?
You can strip the MSAjax out of the Webresource, and let that come down by itself so its not part of the same axd
| <telerik:RadScriptManager runat="server" > |
| <Scripts> |
| <asp:ScriptReference Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" |
| Name="MicrosoftAjax.js" |
| Path="http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
Doing that dropped mine to 66k
...and then turning on the Telerik CDN dropped it to 8k
| <telerik:RadScriptManager runat="server" CdnSettings-TelerikCdn="Enabled" > |
300+ sounds WAY high....can you post your page? Is there a masterpage with other controls?
0
Andy Macourek
Top achievements
Rank 1
answered on 11 Feb 2010, 06:24 AM
I had it in a master page. I stripped the page down to bare bones.
Here is what I have:
I saved the page and Telerik.Web.UI.WebResource.axd is 328K
Here is what I have:
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SizeCheck.aspx.cs" Inherits="SizeCheck" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>SizeCheck</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <rad:RadScriptManager ID="RadScriptManager1" runat="server" /> |
| <rad:RadComboBox ID="selSearchProduct" Skin="Vista" runat="server" Width="200px" Height="150px" |
| DataTextField="ProductName" DataValueField="ProductId" AppendDataBoundItems="true" |
| CollapseAnimation-Type="None" ExpandAnimation-Type="None"/> |
| </form> |
| </body> |
| </html> |
I saved the page and Telerik.Web.UI.WebResource.axd is 328K
0
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 11 Feb 2010, 12:32 PM
Which Web.UI version...the latest?
0
Andy Macourek
Top achievements
Rank 1
answered on 19 Feb 2010, 04:53 PM
I have the following
| <rad:RadScriptManager ID="RadScriptManager2" runat="server" CdnSettings-TelerikCdn="Enabled" > |
| <Scripts> |
| <asp:ScriptReference Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" |
| Name="MicrosoftAjax.js" |
| Path="http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js" /> |
| </Scripts> |
| </rad:RadScriptManager> |
This seems to reduce the size a great deal. The problem that I am seeing now is when I test in my prod environment (using just IP Address for now until I switch DNS), the controls on the page do not load all the time. I do not know if this is due the IP Address or my companies proxy servers. I have a pre-production environment with a DNS name on the internet and that works fine.
Is there any way I can get the js files and I host them on my site rather than have them grabbed from the other sites?
0
Hi Andy,
It shouldn't matter if you're accessing the site through an IP address or domain name. You can try to narrow down the problem using Fiddler or Firebug. Look for failed requests to aspnet-scripts.telerikstatic.com and aspnet-skins.telerikstatic.com (for RadStyleSheetManager).
As for the size of the response from the Telerik WebResource.axd handler, make sure that you're measuring the compressed size over the wire, not the uncompressed size of the content itself.
Our recommendation is to use the CDN for public sites. Either way, the resources will have to get to the clients. You can choose if this happens in one big request (faster for visitors with unprimed caches) or in multiple, highly-cacheable requests delivered over the CDN.
Best wishes,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
It shouldn't matter if you're accessing the site through an IP address or domain name. You can try to narrow down the problem using Fiddler or Firebug. Look for failed requests to aspnet-scripts.telerikstatic.com and aspnet-skins.telerikstatic.com (for RadStyleSheetManager).
As for the size of the response from the Telerik WebResource.axd handler, make sure that you're measuring the compressed size over the wire, not the uncompressed size of the content itself.
Our recommendation is to use the CDN for public sites. Either way, the resources will have to get to the clients. You can choose if this happens in one big request (faster for visitors with unprimed caches) or in multiple, highly-cacheable requests delivered over the CDN.
Best wishes,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Andy Macourek
Top achievements
Rank 1
answered on 01 Mar 2010, 11:32 PM
Sorry for the late reply. My company was doing a security review and they had an issue with the scripts coming from non-company URLs. CDN was allowing me to shrink the AXD size down. Is there a way I can have these js files local on my servers so that I can maintain the small size of the AXD file?
0
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 01 Mar 2010, 11:35 PM
I wonder if you could manually save the files you need, then set a host file entry on your server such that the CDN domain resolves locally?
0
Andy Macourek
Top achievements
Rank 1
answered on 02 Mar 2010, 12:54 AM
I would rather not mess with host files if I can avoid it