Combineing the css

2 posts, 0 answers
  1. Srinivas
    Srinivas avatar
    2 posts
    Member since:
    Apr 2013

    Posted 06 May 2013 Link to this post

    HI

    i have enabled  CdnSettings-TelerikCdn="Enabled"

    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" CdnSettings-TelerikCdn="Enabled" />

    i get the follwoing css files loaded on the page . I want the following css to be combined to singel file  and load on the page . I have even enabled EnableStyleSheetCombine="true"  but that dint combine the css


    <link href="http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1203/Menu.css" type="text/css"

        rel="stylesheet" class="Telerik_stylesheet" />

    <link href="http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1203/Outlook/Menu.Outlook.css"

        type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

    <link href="http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1203/TabStrip.css"

        type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

    <link href="http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1203/Default/TabStrip.Default.css"

        type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

    <link href="http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1203/ListBox.css"

        type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

    <link href="http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1203/Hay/ListBox.Hay.css"

        type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

    we have even other css to load on the page . it would be helpful if we can combine  aspnet-skins.telerikstatic.com CSS in single file. please help me in resolveing the issue

  2. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    654 posts

    Posted 08 May 2013 Link to this post

    Hi, Sirnivas.

    Currently CDN + Styles combine is not possible. Let me explain:

    The way local combine works is to first find all referenced stylesheets (which may vary on per page basis) and create a virtual combined file on the fly. Each unique combination has a unique virtual file.

    Аpplying this to the CDN, it will be virtually impossible to have all possible combinations prepared and uploaded on the CDN. Not to mention that some of those combinations will be gigantic in size.

    At the same time it will make a good feature to have a sort of "bundles" e.g. you are using the Default skin and you get the entire default skin in one neat file.

    I have logged the feature in our Feedback Portal -- http://feedback.telerik.com/Project/108/Feedback/Details/47874-add-bundling-support-for-stylesheetmanager -- for you and other customers to vote for and comment on.

    Regards,
    Ivan Zhekov
    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.
Back to Top