So I just started creating a theme for my first big drupal project, and instantly had to quietly cry in a corner, as I saw how many css files Commerce Kickstart 2 and Omega4 are serving by default.
My plan is to essentially reduce the number of CSS files served to only one, perhaps two (depending on the current page), for the minimum amount of http-requests, without having to manually exclude them all in the theme settings file (which would be an unreliable solution, as new CSS files may get added upon installment of a new module). In addition, exceptions will have to be handled depending on a user role; so visitors should really only get one or two css files, whereas admins shall be served with all CSS files, that are required for the control panel overlay, as well.
Thus my question: Is there a way for me to easily smack those fancy admin- and maintenance-related CSS files back in, only to be loaded for admins?
Basically I want regular visitors to only load my
global.css file, whereas admins also get the CSS files of the basetheme as well as
commerce_kickstart_menus.css. (For some reason,
toolbar_megamenu.css already gets served to admins only.)
Any help or hints as how I could go about this would be super-appreciated!