Feature #61993
closedExclude Page CSS from Concatenation
100%
Description
Hey Folks,
I discovered that Page CSS from css_styled_content like .csc-space-before-20 { margin-top: 20px !important; } and so on is always concatenated with the other stylesheets which are included in the page.
This leads to nearly each Page has an individual CSS-File even if there is only one line different.
I dont think this is really perfomant because the browser has to download the whole file on each page.
Excluding the Page CSS from concatenation solves this issue because the majority of css is in one file which can be cached by the browser. If there is any Page Css it is in a tiny secondary file.
I know there is the setting config.inlineStyle2TempFile which could solve this issue too, but having all the inline styles in the header of the page is neither necessary nor very pretty.
So i came up with a new Setting config.concatenateCss.excludePageCss = 1 which solves this issue for me.
I push my solution to the review server.
Thanks, Thomas