Title: Optimizing css breaks site (another one)
Last modified: November 1, 2016

---

# Optimizing css breaks site (another one)

 *  Resolved [lwkooy](https://wordpress.org/support/users/lwkooy/)
 * (@lwkooy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/)
 * Hey,
 * First: love the plugin, Great job.
 * Question: I tried enabling the ‘optimize css code’ several times, excluding several
   things (e.g. what was suggested in [https://wordpress.org/support/topic/autoptimize-optimize-css-code-breaking/](https://wordpress.org/support/topic/autoptimize-optimize-css-code-breaking/)),
   but I can’t get it to work.
 * Whenever I enable the optimize css code function, it pretty much throws away 
   my entire css.
 * The result (with css optimization enabled) : [https://www.webpagetest.org/result/161101_J6_P15/](https://www.webpagetest.org/result/161101_J6_P15/)
   but the screenshot actually looks like this : [https://ohiobear.com/wp-content/uploads/2016/11/Capture.png](https://ohiobear.com/wp-content/uploads/2016/11/Capture.png)
 * Dank :). Much appreciated
 * website: [https://ohiobear.com/](https://ohiobear.com/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8380969)
 * Middag Lennard;
    Had a quick look at your site, but it seems you’re (also/ now)
   running wp fastest cache CSS minification. this;
 * * could be the reason for the breakeage if run concurrently with AO
    * makes 
   it harder for me to find out what might be going on (I tend to disable stylesheets
   one by one until I see which one should be excluded)
 * so, can you disable wpfc minify options (at least for now)?
 * frank
 *  Thread Starter [lwkooy](https://wordpress.org/support/users/lwkooy/)
 * (@lwkooy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8381067)
 * Ha Frank,
 * I am. A bit of the ‘more is more’ philosophy :).
 * Of course! I disabled all the minify and combining funcitons of wpfc (only ones
   left checked are ‘Cache System, Preload, Gzip and Browser Caching).
 * thanks!!
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8381482)
 * ok, for starters let’s try adding this to the CSS optimization exclusion field;
 * `mrtailor/css/app.css, mrtailor/css/default.css, mrtailor/css/styles.css, font-
   awesome.min.css`
 * frank
 *  Thread Starter [lwkooy](https://wordpress.org/support/users/lwkooy/)
 * (@lwkooy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8381500)
 * All right, that made some improvements. Now, only the icons are missing:
 * [https://ohiobear.com/wp-content/uploads/2016/11/Capture2.png](https://ohiobear.com/wp-content/uploads/2016/11/Capture2.png)
 * 🙂
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8381514)
 * weird; icons work for me?
 * > [View post on imgur.com](https://imgur.com/a/m4eyl)
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8381530)
 * would be surprising actually, because fontawesome (of which 2 versions are loaded
   by the way) which is responsible for the icons is excluded from CSS optimization.
 *  Thread Starter [lwkooy](https://wordpress.org/support/users/lwkooy/)
 * (@lwkooy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8381569)
 * Yeah. But I tried excluding those quite sometimes already. No luck.
 * I’m in chrome, incognito to make sure I don’t hit the cache. The cions need to
   be in the header as well (now they are a bit half in the slider, half in the 
   header).
 * No clue why he loads them twice as well. i think one set is in the theme and 
   another one gets called from the visual composer plugin.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8381730)
 * ah, had a look in chrome and see this one (and more like it) on the console;
 * > Access to Font at ‘[https://wordpress-ohiobear.netdna-ssl.com/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/fonts/fontawesome-webfont.woff2?v=4.6.3&#8217](https://wordpress-ohiobear.netdna-ssl.com/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/fonts/fontawesome-webfont.woff2?v=4.6.3&#8217);
   > from origin ‘[https://wordpress-ohiobear.netdna-ssl.com&#8217](https://wordpress-ohiobear.netdna-ssl.com&#8217);
   > has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is
   > present on the requested resource. Origin ‘[https://ohiobear.com&#8217](https://ohiobear.com&#8217);
   > is therefore not allowed access.
 * This is not related to AO really, this can be fixed (I think) with a settting
   at maxcdn/ netdna’s or by excluding fontawesome & co from being served by the
   CDN.
 * frank
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8385458)
 * in Firefox (with AO CSS optimization off, apparently) I now also get
 * > 10:06:19.332 Cross-Origin Request Blocked: The Same Origin Policy disallows
   > reading the remote resource at [https://wordpress-ohiobear.netdna-ssl.com/wp-content/themes/mrtailor/inc/fonts/font-awesome/fonts/fontawesome-webfont.ttf?v=4.4.0](https://wordpress-ohiobear.netdna-ssl.com/wp-content/themes/mrtailor/inc/fonts/font-awesome/fonts/fontawesome-webfont.ttf?v=4.4.0).(
   > Reason: CORS header ‘Access-Control-Allow-Origin’ missing).1(unknown)
 * [this maxcdn-article](https://www.maxcdn.com/one/tutorial/how-to-use-cdn-with-webfonts/)
   explains how to fix this.
 * succes 🙂
    frank
 *  Thread Starter [lwkooy](https://wordpress.org/support/users/lwkooy/)
 * (@lwkooy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8386299)
 * Hi Frank,
 * Thanks for all the help. I’ll let you know if I solved it.
 * cheers,
    Lennard
 *  Thread Starter [lwkooy](https://wordpress.org/support/users/lwkooy/)
 * (@lwkooy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8406252)
 * Hi Frank,
 * That solved it. For everyone that might end up reading this post: make sure you
   purge the cdn cache i you edit the .htaccess file
 * cheers

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

The topic ‘Optimizing css breaks site (another one)’ 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/)

 * 11 replies
 * 2 participants
 * Last reply from: [lwkooy](https://wordpress.org/support/users/lwkooy/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-site-another-one/#post-8406252)
 * Status: resolved