RadScriptManager / EnableScriptCombine produces 10 scripts on an empty project

3 posts, 0 answers
  1. Chen
    Chen avatar
    46 posts
    Member since:
    Oct 2010

    Posted 12 May 2011 Link to this post


    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
    TIME (ms)
    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. Simon
    Simon avatar
    2281 posts

    Posted 13 May 2011 Link to this post

    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,
    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.

  3. Chen
    Chen avatar
    46 posts
    Member since:
    Oct 2010

    Posted 13 May 2011 Link to this post

    Kudos for a very quick response.
Back to Top