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

CDN and outputcompression

3 Answers 78 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
avner
Top achievements
Rank 1
avner asked on 20 Feb 2012, 11:12 PM
Hi,

A few questions around CDN and OutputCompression for script and stylesheet manager:

- I was wondering: when CDN is enabled will the OutputCompression property be disregarded? This is on version  2010.2.
- Can you show me how to set CDN settings programatically - in the code-behind?
- Related to previous, I tried adding: <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />   to my config, but appears to be ignored. My appsettings is in an external config file.

regards,

Avner

3 Answers, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 23 Feb 2012, 01:35 PM
Hi avner,

RadScriptManager/RadStyleSheetManager's OutputCompression property currently works always with or without CDN (we will fix it so that it can be disabled with CDN as it now does not work).

Programmatically setting the settings is straightforward - the code follows the structure of the markup you are seeing in this help article, e.g. 
RSM.CdnSettings.TelerikCdn = TelerikCdnMode.Enabled;

Finally, the web.config setting has been tested numerous times on our end and this is the first report that says it does not work. Since we have not made modifications to that functionality since it was created, we should now be looking for another cause. Could you send a sample project showing the issue in the support ticket you have opened on the same subject? 

All the best,
Simon
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
avner
Top achievements
Rank 1
answered on 23 Feb 2012, 03:50 PM
Hi,

Another question regarding CDN content. I noticed that JQuery is downloaded as part of the script content. If my site references a later version of JQuery, is this going to conflict, or is the version of JQuery the controls depend on isolated?

regards,
Avner
0
Simon
Telerik team
answered on 28 Feb 2012, 01:00 PM
Hi avner,

Our jQuery version is isolated under $telerik.$ unless you explicitly move it to $ by including the Telerik.Web.UI.Common.jQueryInclude.js script on your page. However, we recently discovered that there is a problem with the latest version of Telerik.Web.UI where $telerik.$ leaks to $. So, with Q1 20120 we have a bug, which we will fix for Q1 2012 SP (or the intermediate internal builds).

Greetings,
Simon
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
ScriptManager and StyleSheetManager
Asked by
avner
Top achievements
Rank 1
Answers by
Simon
Telerik team
avner
Top achievements
Rank 1
Share this question
or