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

RadScriptManager / EnableScriptCombine produces 10 scripts on an empty project

2 Answers 160 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Chen
Top achievements
Rank 1
Chen asked on 12 May 2011, 05:12 PM
Hi,

I created a new project with only one RadComboBox.
I added the RadScriptManager, set EnableScriptCombine to true and ran with YSlow.

The result is shown below.
I expected all the JS to be combined to one.
What am I doing wrong?

The page has a total of 14 components and a total weight of 145.5K bytes
TYPE SIZE
(KB)
GZIP
(KB)
COOKIE RECEIVED
(bytes)
COOKIE SENT
(bytes)
URL EXPIRES
(Y/M/D)
RESPONSE
TIME (ms)
ETAG
doc 6.3K http://localhost:49573/Default.aspx no expires 1949
js 21.7K http://localhost:49573/WebResource.axd?d=C65kFO8Zbyr7oEK88I4nwkCFF2wi8YUppZCA1-hPbGEC9Dh-au8RfX-Tno5[snip] 2012/5/11 65
js 142.1K 40.0K http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compre[snip] 2012/5/11 72
js 36.1K 8.9K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/Core.js 2020/11/9 112 "2c2cea13c88f37aca1fe21374c6f214b"
js 78.0K 26.8K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/jQuery.js 2020/11/9 117 "d433bf28fe6035d33e275884802fb720"
js 0.1K 0.1K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/jQueryInclude.js 2020/11/9 127 "b2469851ca7b21412c32dfde156114d5"
js 30.8K 7.4K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Ajax/Ajax.js 2020/11/9 126 "7f4540a8b019e15b2e124127fbcae158"
js 6.0K 1.8K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/jQueryPlugins.js 2020/11/9 130 "dc318c0bd343b121210cb177c45ef98f"
js 8.4K 2.2K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/TouchScrollExtender.js 2020/11/9 131 "29a9ff6a5a9813a9cfd806c8ad50815c"
js 37.3K 7.8K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/Navigation/NavigationScripts.js 2020/11/9 133 "6923509a1cf8a149eaa9ea38498db3a5"
js 74.8K 15.9K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/ComboBox/RadComboBoxScripts.js 2020/11/9 137 "16e6cef878b58e2ab55d7293f814476d"
css 7.3K 1.5K http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/ComboBox.css 2020/11/9 34 "07b73c2be12eff7b36213d328919d1fb"
css 6.4K 0.9K http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/Default/ComboBox.Default.css 2020/11/9 37 "76949e19a5ef0d7e8a37f62fb495e5cb"
cssimage 3.6K http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/Default/ComboBox/rcbSprite.png 2020/11/9 4 "1d50330b9e536d8fc173120fceda6c88"

2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 13 May 2011, 05:02 PM
Hi Chen,

This is so because you have enabled CDN. On CDN our resources are hosted as separate files because script combining is impossible to do there.

On the other hand, if you do not use CDN, RadScriptManager will combine all of our scripts without those of the ASP.NET AJAX Framework. The last are rendered on a very base level in the framework and we do not have control over them. So in the best case, without using CDN and when script combining is enabled, you will have two requests for scripts.

Please let me know if you have additional questions.

Kind regards,
Simon
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Chen
Top achievements
Rank 1
answered on 13 May 2011, 05:11 PM
Kudos for a very quick response.
Tags
ScriptManager and StyleSheetManager
Asked by
Chen
Top achievements
Rank 1
Answers by
Simon
Telerik team
Chen
Top achievements
Rank 1
Share this question
or