Reducing the number of CSS files (with different media specification in the link tag)
It often happens that several extensions generate different media information in link tags. (Such as "screen", "all", "screen, projection"). As a result, CSS files can not be combined into one (see example).
It would surely make sense to create a possibility that this media information be standardized. (f.e.: all values are to "media=all" or "media=screen")
Results: It would transfer one file. The performance would increase. Google would evaluate the site better ...
What do you think?
<link rel="stylesheet" type="text/css" media="all" href="typo3temp/scriptmerger/compressed/head-e82f6c7a7ed550fb088db860acc0afab.merged.gz.css" />
<link rel="stylesheet" type="text/css" media="screen,projection" href="typo3temp/scriptmerger/compressed/head-bc16e422021176beb56c146f251324c5.merged.gz.css" />
#1 Updated by Stefan Galinski over 8 years ago
- Status changed from New to Accepted
- Priority changed from Should have to Must have
IMHO this is a must have, because you cannot always patch any extension that set different hardcoded media tags. A small configuration option with mapping data about the media tag should do the stuff.
all = all;screen;screen,projection
print = print
The "all" and "print" properties are containing list of media tags that are separated by a semicolon and should be merged into the "all" or "print" meda tag. If you don't map a specific media value, it will be processed like now.