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

RadScriptManager generates huge amount of javascript to download...

3 Answers 69 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
massimo mannoni
Top achievements
Rank 1
massimo mannoni asked on 02 Nov 2010, 01:33 PM
Hi,
We built a website using Telerik Web UI Controls 2009 Q3; using a RadScriptManager we are creating a file to hold all the js combined. The problem is that, althrough using IIS 7 compression, we are getting nearly 800 KB of Javascript. How can we reduce this size??
Thank you.

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 05 Nov 2010, 01:49 PM
Hello massimo mannoni,

This means that your JavaScript code is huge. Since you are already using compression you can consider reducing the code to only the needed minimum (perhaps not all of the code is needed on each individual page).

Sincerely yours,
Simon
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
massimo mannoni
Top achievements
Rank 1
answered on 05 Nov 2010, 02:34 PM
Hi
you misunderstood my question, my fault.
I would like to know why the file Telerik.Web.UI.WebResource.axd  is generating nearly 800 KB of javascript althrough my declaration of RadScriptManager is very simple, including just 100 KB of my own code.

Also, my pages are not using too much Telerik's controls. What I use include: RadWindow, RadGrid, RadComboBox (rarely), RadSplitter (rarely), RadEditor (less frequently), RadMenu and RadTabStrip.

Thank you.
0
Accepted
Simon
Telerik team
answered on 11 Nov 2010, 01:25 PM
Hello massimo mannoni,

The size of the JavaScript increases with the number of RadControls on the page. Putting only a RadScriptManager on a page will generate a fairly small size of JavaScript code being loaded. For instance, this demo loads 307.4KB of compressed JS code.

Unless I am missing something, this is normal.

All the best,
Simon
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
Tags
ScriptManager and StyleSheetManager
Asked by
massimo mannoni
Top achievements
Rank 1
Answers by
Simon
Telerik team
massimo mannoni
Top achievements
Rank 1
Share this question
or