Autoptimize will create css files for the media types in your theme (and plugins).if you have screen, print and all stylesheets, autoptimize will keep those separate, even if there is very little actual css in there.
Hope this helps,
Frank
Hi there,
It’s a good practice to respect the media types screen, print and all but I would add an advanced option to override this behaviour and allow to merge everything into one single file.
hmmm … that could be a dangerous option, no? i’ll put it on the list of candidate features, but let me think about that for a while.
by the way; if you’re interested you can off course code this yourself and provide me with the patch(ed) file(s). that way the chances of this getting in will increase significantly 😉
have a nice end-of-year!
frank
OK, I’ll try to do it as a patch then.
“that could be a dangerous option, no?” -> Yes, it can, off course. That should be an advanced feature with the appropriate warning on the options page. I can give you an example: I’m using Fancybox that declares it’s CSS as screen, but it’s the only plugin that’s doing the website I’m working on now. All the others don’t provide “screen”, “print” or “all” at all. They could all just be “all” safely.
OK, I’ll try to do it as a patch then.
Great! If you’re into GitHub, here’s your starting point; https://github.com/futtta/autoptimize
frank