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

StyleSheet Combining

1 Answer 122 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
msigman
Top achievements
Rank 2
msigman asked on 04 Apr 2011, 05:59 PM
I was very pleased to see that stylesheet combining was added for Q1 2011!  I did something like this and it worked as expected. 

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    <StyleSheets>
        <telerik:StyleSheetReference Path="~/Styles/Common.css"  />
    </StyleSheets>
</telerik:RadStyleSheetManager>

My question is, can someone tell me how it works behind the scenes?  Specifically I'm wondering if the file combination is done at every page request, or is done once and then cached somewhere? 

Also, what is IsCommonCss for?

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 08 Apr 2011, 09:33 AM
Hello msigman,

Combining happens each time the WebResource containing all registered style sheets is requested from a page. If your browser caching is enabled the request will be cached and not requested from the same page again.

The IsCommonCss property is used when constructing the path to embedded common style sheets. It has no relevance to external style sheets.

I hope I have answered your questions. Please let me know if you need more information or you have additional questions.

All the best,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScriptManager and StyleSheetManager
Asked by
msigman
Top achievements
Rank 2
Answers by
Simon
Telerik team
Share this question
or