Project

General

Profile

Actions

Feature #61993

closed

Exclude Page CSS from Concatenation

Added by Thomas Christiansen over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2014-10-01
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

Actions

Also available in: Atom PDF