Title: autoptimize breaks css
Last modified: February 10, 2018

---

# autoptimize breaks css

 *  Resolved [zatur90](https://wordpress.org/support/users/zatur90/)
 * (@zatur90)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-breaks-css/)
 * Hi, does anyone know what YUICSSMIN_PRESERVE_CANDIDATE_COMMENT is? I got a problem
   with a site when I use Autoptimize to combine all css files, there is a code 
   that breaks my site. This line of code:
 * /*___YUICSSMIN_PRESERVE_CANDIDATE_COMMENT_1___
 * this comment is not closed and it breaks all css from below until the next comment.
   Need to figure out where that particular line of css is in order to remove it
   or change it.
 * I’ve also tried using a “Remove critical CSS generator” / Inline and Defer CSS
   in order to remove all of the comments etc. from the combined CSS file. but no
   luck. 🙁
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautoptimize-breaks-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-breaks-css/#post-9960464)
 * hey [@zatur90](https://wordpress.org/support/users/zatur90/);
    looks like one
   CSS-file is breaking the minifier ([yuicssmin](https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port))
   you could try to exclude your original CSS-files one by one, to try to work around
   this issue?
 * hope this helps,
    frank
 *  Thread Starter [zatur90](https://wordpress.org/support/users/zatur90/)
 * (@zatur90)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-breaks-css/#post-9960516)
 * Hi Frank,
 * I would like to give your solution a try. But how do I figure out the names of
   the original CSS-files?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-breaks-css/#post-9960818)
 * have a look at the HTML source of `https://www.amerk.dk/?ao_noptimize=1` (the`?
   ao_noptimize=1` part disables optimization), in there you’ll see e.g.
 * `<link rel='stylesheet' id='divi-style-css' href='https://amerk.dk/wp-content/
   themes/tobias-magnussen/style.css' type='text/css' media='all' />`
 * so you can exclude that by adding `themes/tobias-magnussen/style.css` to AO’s
   comma-separated CSS optimization exclusion list.
 * try to do that for each linked CSS-file in the HTML source until `/*___YUICSSMIN_PRESERVE_CANDIDATE_COMMENT_1___`
   is no longer in your autoptimized CSS (also try unticking the “also aggregate
   inline CSS” option to make sure the problem is not with the inline CSS).

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

The topic ‘autoptimize breaks css’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-breaks-css/#post-9960818)
 * Status: resolved