Disable StyleSheetCombiner

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
5/10/2013 10:12:53 AM
Gravatar
Total Posts 2

Disable StyleSheetCombiner

Hi

i new a page (no master page)  eg: web.aspx, when i run page web.aspx, class StyleSheetCombiner run too, i want disbale StyleSheetCombiner.

thanks

5/10/2013 10:20:57 AM
Gravatar
Total Posts 18439

Re: Disable StyleSheetCombiner

You can disable it by adding this to user.config:

<add key="CombineCSS" value="false"/>​

But generally I advise against doing that. If you tell me why you want to do it I may have better advice for the problem you are trying to solve.

5/11/2013 12:25:28 AM
Gravatar
Total Posts 2

Re: Disable StyleSheetCombiner

Hi Joe

I design website view image (load many image). when debug StyleSheetCombiner load many file css and script. maybe low load website (?), i thinks so.

i create a file StyleSheetCombiner (stylesheetcombinerNew.ascx) other, add into website, but StyleSheetCombiner default run too, so i want disable StyleSheetCombiner.aspx

can you give me advice ?

thanks

5/13/2013 9:25:55 AM
Gravatar
Total Posts 18439

Re: Disable StyleSheetCombiner

It is not currently possible to replace StyleSheetCombiner with your own thing.

However, it does not have to load lots of css files. Actually StyleSheetCombiner just creates the url for csshandler which combines and minifies the css files. The number of css files is determined only by the list of files in style.config file in the skin folder. If you want fewer files then remove them from style.config or pre-combine the raw css files into fewer files.

Disabling StyleSheetCombiner can be done with the setting I previously provided but all that does is make it create the urls for all the separate css files (listed in style.config) instead of one url for csshandler. Disabling is not recommended because we can only control caching if we use csshandler otherwise the browser may cache the css files. Also disabling it would create lots of urls to the separate files unless you pre-combine then into fewer css files listed in style.config.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.