Title: 3 CSS generated?
Last modified: August 21, 2016

---

# 3 CSS generated?

 *  Resolved [totland](https://wordpress.org/support/users/totland/)
 * (@totland)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/3-css-generated/)
 * Hi,
 * I notice that the plugin generates 3 CSS files in head, but only one have content.
   Me not like unnecessary http calls. Any idea?
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/3-css-generated/#post-5055388)
 * 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
 *  [Marco Almeida | Webdados](https://wordpress.org/support/users/webdados/)
 * (@webdados)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/3-css-generated/#post-5055810)
 * 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.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/3-css-generated/#post-5055811)
 * 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
 *  [Marco Almeida | Webdados](https://wordpress.org/support/users/webdados/)
 * (@webdados)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/3-css-generated/#post-5055812)
 * 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.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/3-css-generated/#post-5055816)
 * > 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](https://github.com/futtta/autoptimize)
 * frank

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘3 CSS generated?’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/3-css-generated/#post-5055816)
 * Status: resolved