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

WebResources and ScriptResources

3 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
René
Top achievements
Rank 2
Iron
René asked on 18 Nov 2013, 08:44 PM

Hello,

is there any way how to get rid of all ScriptResource and WebResource requests of Telerik controls? I want to use standard script and style bundling. On every page there is always more then 15 requests only for embedded resources. I think it is better to have 1 request for styles and one for scripts. Well, sometimes more, but I want definitely remove all these requests. So any chance to get source scripts, create my own bundles and disable resource requests?

Thanks

3 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 21 Nov 2013, 02:30 PM
Hi Raptor,

If you are not using a CDN you could place a RadScriptManager control which unites all the scripts requested by the browser and also place a RadStyleSheetManager which combines all the styles. Additionally you could disable the styles and the scripts for each control by disabling the EnableEmbeddedScripts, EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins.

Regards,
Kostadin
Telerik
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 the blog feed now.
0
Sunil
Top achievements
Rank 1
answered on 16 Jul 2016, 09:03 AM

Hi,

I am having the same issue and tried to add the RadScriptManager control in the content page. It resolves the problem what you have mentioned but since our Master page contains the <asp:ScriptManager > tag already, it is not working with the master page and content page. Only one instance of script should be allowed in a page.

Can you please help in this regard asap?

 

Thanks,

Mahesh

0
Marin Bratanov
Telerik team
answered on 18 Jul 2016, 11:43 AM

Hi Mahesh,

Regarding the number of script manager instances on the pageā€”this is the standard behavior of the MS AJAX framework. You should replace the <asp:ScriptManager> from the master page with a <telerik:RadScriptManager>.

To add some more information on the original case, as well as more options everyone can choose from:

RadScriptManager and RadStyleSheetManager will combine the webresource requests for the Telerik resources into one, so you can get that very easily.

The second option I can suggest is using the CDNs we provide and the combined resources we have. This will let you and your users benefit from the aggressive caching this provides.

A third option (that I would not recommend because involves too much work for manual bundling) is to disable the embedded resources of our controls and register them manually:http://docs.telerik.com/devtools/aspnet-ajax/general-information/performance/disabling-embedded-resources. This approach does not offer any benefits to the CDN approach. If your app will be used in an Intranet environment where the users will not have access to the cloud, you can create a custom CDN provider on your local machine: http://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/cdn-support/custom-cdn-provider.

 

 

Regards,

 

Marin Bratanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
General Discussions
Asked by
René
Top achievements
Rank 2
Iron
Answers by
Kostadin
Telerik team
Sunil
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or