Title: Issues with CSS minify
Last modified: June 3, 2017

---

# Issues with CSS minify

 *  Resolved [obliterator](https://wordpress.org/support/users/obliterator/)
 * (@obliterator)
 * [9 years ago](https://wordpress.org/support/topic/issues-with-css-minify/)
 * I have 2 problems with the CSS minify feature:
    1. Enabling it actually lowers
   my score in Google Page Insights (counter intuitive). 2. It breaks the styling
   of some pages on my site (even with the option to preserve CSS ordering enabled).
   For now I’ve just disabled CSS processing. Otherwise a great plugin very well
   designed.

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

 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [9 years ago](https://wordpress.org/support/topic/issues-with-css-minify/#post-9193680)
 * Hi,
 * What is your url?
 * This normally happens if your theme has been modified somehow, to include one
   or several css files on the header / footer directly. If those are not “enqueued”
   using the wordpress api, my plugin cannot actually capture them (we rely on the
   standard api method only).
 * One way to see this is by checking the amount of css files it has before and 
   after enabling the css option. If you have more css files than initially, it0s
   a good indicator that some files are manually printed on the theme header, rather
   than enqueued.
 * As your theme been modified in any way?
    Are you using any other plugin, or enabled
   some theme option to optimize the css on it’s own?
 * As for broken styling, there might be some files that need to be excluded, especially
   if there’s a file that should only load for internet explorer but that has also
   been caught by our plugin (that means, it was enqueued but without conditionals).
 * If you have a commercial theme that has never been modified, please let me know
   which one.
 *  Thread Starter [obliterator](https://wordpress.org/support/users/obliterator/)
 * (@obliterator)
 * [9 years ago](https://wordpress.org/support/topic/issues-with-css-minify/#post-9193768)
 * I’m using the Newspaper theme (no modifications).
    The main page loads just fine
   with CSS minify enabled. The problem only affects an image carousel (part of 
   the visual composer plugin) on one of the pages. No other plugins that optimise
   the CSS – just ones to enable mod_deflate and expire headers.
 * I also found the JS minify breaks the cool-timeline-pro plugin – but that was
   easy to exclude from minification.
 *  Thread Starter [obliterator](https://wordpress.org/support/users/obliterator/)
 * (@obliterator)
 * [9 years ago](https://wordpress.org/support/topic/issues-with-css-minify/#post-9193975)
 * I found a workaround by adding an exclusion: /js_composer/assets/lib/vc_carousel/
   css/
 * However, Google still gives me a lower score with CSS processing enabled so I’ve
   disabled that aspect of the plugin. Instead I’ve minified the main style.css 
   file in the theme manually which has done the trick.
 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [9 years ago](https://wordpress.org/support/topic/issues-with-css-minify/#post-9198834)
 * You can also try the inline css option, which will remove the render blocking
   for css.
 * Visual composer is a bit tricky, because they have a mix of places where they
   add css directly to the header, rather than enqueueing it.
    I have it working
   with visual composer in several themes, but maybe there’s something else.
 * We also have some faqs explaining why some stuff get’s broken:
    [https://wordpress.org/plugins/fast-velocity-minify/#faq](https://wordpress.org/plugins/fast-velocity-minify/#faq)
 * Thanks for reporting, I’ll also take a better look at the Newspaper theme also.
 *  Thread Starter [obliterator](https://wordpress.org/support/users/obliterator/)
 * (@obliterator)
 * [9 years ago](https://wordpress.org/support/topic/issues-with-css-minify/#post-9199861)
 * I think I’ve figured out why the Google Insight score dropped when I minified
   the CSS with your plugin… and I don’t think its the fault of your plugin!
 * I’ve discovered another plugin is adding a css file to all my pages. I think 
   its intended to style the settings page of that plugin (rather than style content
   on my pages – as the plugin only manipulates http headers – nothing more)…
 * My suspicion is that Google interprets that small css file as a critical ATF 
   stylesheet and gives me a good score (erroneously). When I minify/bundle the 
   CSS with your plugin Google no longer sees what it thinks is a critical stylesheet
   and my score drops. I tried removing that CSS temporarily manually (without minifying/
   bundling anything else) and my Google score dropped just the same.
 * If I’m to keep the high ranking, I think I will need to find a plugin which extracts
   the critical CSS and minifies/bundles the rest.
 * So I think the only real issue with your plugin CSS is the handling of the css
   for the carousel in the visual composer.
 * Let me know if I can send anything further to help or if you develop ATF support!

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

The topic ‘Issues with CSS minify’ is closed to new replies.

 * ![](https://ps.w.org/fast-velocity-minify/assets/icon-128x128.jpg?rev=1440946)
 * [Fast Velocity Minify](https://wordpress.org/plugins/fast-velocity-minify/)
 * [Support Threads](https://wordpress.org/support/plugin/fast-velocity-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/fast-velocity-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fast-velocity-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fast-velocity-minify/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [obliterator](https://wordpress.org/support/users/obliterator/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/issues-with-css-minify/#post-9199861)
 * Status: resolved