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

Big size of Telerik.Web.UI.WebResource.js creating problems

3 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 12 Dec 2012, 11:40 AM

Hi,

We use Telerik AJAX ASP.NET extensively. On one page the page response time is very critical. On this page we are using RadGrid and RadComboBox. We have included RadScriptManager too.

One issue we are facing is that when user accesses this page for first time then Telerik.Web.UI.WebResource.js file is downloaded. This file is about 0.7 MB is size! This is creating major performance issues due to which we are being forced to re-write the page without Telerik.

Is there a way to reduce this size? On this particular page we are just using the RadGrid and RadComboBox- is there a way that we include the js for just these two controls? Or is there some other way?

Note: Using Telerik CDN is not going to help as using this yet on first visit the js file size would remain the same. Using RadCompression is not going to help as main problem is the 0.7 MB size of Telerik.Web.UI.WebResource.js.

I googled a bit but did not find a solution. PLEASE HELP, else its bye bye Telrik for us!

Thanks,
- Manoj

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 17 Dec 2012, 10:52 AM
Hello Manoj,

From the post that you provided it seems that you tried the techniques that I would have suggested you use. Here is also another post that I believe you might find helpful in regards to the performance of our controls. In the Performance folder in our on-line help you can find various tips on how to optimize its performance. Further in this help article you can read more details on optimizing different controls.

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Manoj
Top achievements
Rank 1
answered on 18 Dec 2012, 12:05 PM

Hi,

Thanks for your reply. I am already doing a lot of the things you have suggested. Problem is mainly with the big Telerik.Web.UI.WebResource.js file which is about 0.7MB.

I noticed that for one project we had separate JavaScript file for RadGrid (RadGridScripts.js) and RadComboBox (RadComboBoxScripts.js). The combined size of these is about 0.4MB. Some questions-

1) When are separate JavaScripts per control used instead of the combined js?
2) Is there any drawback if I use the separate javascript files?

Thanks,
- Manoj

0
Dimitar Terziev
Telerik team
answered on 21 Dec 2012, 03:47 PM
Hi Manoj,

By default when a RadScriptManager is used all requests for scripts are combine, this functionality could be disable by setting the EnableScriptCombine property of false. In general it is better to use the script combining since it offers a better performance. Because the size of the js files could not be reduced, my suggestion in terms of performance optimization is to rely on caching. There are two approach in order to benefit from the caching. The first one is to enable the CDN support, in such case the scripts will be downloaded from the Amazon CloudFront service instead of being loaded from the Telerik assembly. The main benefit here is that these scripts will be downloaded only once and then will be taken from the browser's cache. More information about the CDN support and its benefits could be found here.

If for some reason the usage of CDN is not an option in your scenario, the Script Grouping functionality of the RadScriptManager could be used. More information about this feature could be found here.

Regards,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Manoj
Top achievements
Rank 1
Answers by
Kate
Telerik team
Manoj
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or