Open Spellhammer opened 4 years ago
This to not load styling for classes globally if not needed globally. CSS Optimization which would prevent loading unused css.
Worth to mention is that using classes is not only handy to prevent create duplicated styling to same elements. But it's also the oxygen way of copy and paste styling to another element.
But with this setup as of today we create a huge global file. Which contains unused css for certain templates and pages.
Would happily see this feature being improved either by default adding it to it's page custom-class.css file at the template you´re adding it in.
From styling management I can activate classes to other templates or global which would trigger it's style in preferred places so I dont have to rewrite or restyle classes in different templates.
Other relevant performance tickets:
Posted on behalf of Tobias Alriksson:
Add an option for each class/selector added in Oxygen to be output on a specific page, template, or globally in Universal.css
Currently all classes are output in Universal.css, resulting in unneeded classes being output on some pages.