Title: Minify css problem
Last modified: July 31, 2020

---

# Minify css problem

 *  Resolved [nickfr](https://wordpress.org/support/users/nickfr/)
 * (@nickfr)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/minify-css-problem/)
 * When i enable css minify, the site on initial loading shows for a while the fallback
   generic font before loading the google font. I tried all settings in fonts but
   the problem is css minify. when css minify disabled fonts load nice. I also excluded
   all css files to check but problem still there.

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

 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/minify-css-problem/#post-13193549)
 * Hi there,
 * For better performance, WP-Optimize adds the “swap” display option to the Google
   fonts (You can read more about this here; [https://developers.google.com/web/updates/2016/02/font-display#which_font-display_is_right_for_you](https://developers.google.com/web/updates/2016/02/font-display#which_font-display_is_right_for_you))
 * If you wish to disable this, you can use the following code snippet:
 * `add_filter( 'wpo_minify_gfont_display_swap', '__return_false' );`
 * Best wishes,
    Marc.
 *  [christer_f](https://wordpress.org/support/users/christer_f/)
 * (@christer_f)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/minify-css-problem/#post-13779991)
 * I have the same problem. The suggested filter did not help me. I don’t think 
   it is because of the swap option, because with that option the google font should
   swap in once it is loaded, but this does not happen.
 * And in fact, I don’t see the suggested filter being called! (I created another
   add_filter with a debug trace).
 * Maybe things depend on how the google fonts are loaded? I used [@import](https://wordpress.org/support/users/import/)
   into my main css file.
 * Then I moved the loading of the Google fonts to the HTML head instead, and now
   the fonts are loaded (although the plugin option “Don’t load Google Fonts” has
   no efect)
    -  This reply was modified 5 years, 5 months ago by [christer_f](https://wordpress.org/support/users/christer_f/).
 *  [saberlight](https://wordpress.org/support/users/saberlight/)
 * (@saberlight)
 * [5 years ago](https://wordpress.org/support/topic/minify-css-problem/#post-14387428)
 * I have the same problem. Safari will not load my google fonts. I’ve tried every
   configuration imaginable. I’ll have to come up with a workaround or try an optimizing
   plugin alternative.
 *  [daanverh](https://wordpress.org/support/users/daanverh/)
 * (@daanverh)
 * [5 years ago](https://wordpress.org/support/topic/minify-css-problem/#post-14389028)
 * I am having this exact same problem with ‘Mimify’ turned on after update 3.1.9.
   
   On desktop Google Chrome works perfectly, on Safari it returns to a system default
   font, and on an Android tablet, it also doesn’t load the Google Font. For now
   i have reverted to plugin version 3.1.8. Please advise.
 *  [daanverh](https://wordpress.org/support/users/daanverh/)
 * (@daanverh)
 * [5 years ago](https://wordpress.org/support/topic/minify-css-problem/#post-14414459)
 * If anybody is looking for a solution, wait a bit, as it is indeed a bug in version
   3.1.9, stated by plugin support in this forum topic : [https://wordpress.org/support/topic/lettertype-probleem-3-1-9/](https://wordpress.org/support/topic/lettertype-probleem-3-1-9/)
 *  [acyian](https://wordpress.org/support/users/acyian/)
 * (@acyian)
 * [5 years ago](https://wordpress.org/support/topic/minify-css-problem/#post-14443823)
 * Yes, I have exactly the same problem. My GoogleFonts don’t work anymore when 
   I check the option: Process CSS files with your Plugin version 3.1.9. I use the
   Divi plugin. Thanks for all your efforts for your WP Optimize plugin. And thank
   you in advance for fixing this big problem with GoogleFont.
 *  [elisafarli](https://wordpress.org/support/users/elisafarli/)
 * (@elisafarli)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/minify-css-problem/#post-14684395)
 * the problem persists with the update. has anyone figured a way around this?
 *  [krisolin](https://wordpress.org/support/users/krisolin/)
 * (@krisolin)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/minify-css-problem/#post-15034571)
 * When I turn on the WP Optimize feature Minify it messes up the layout. See image:
   [https://socialmediarevolver.com/wp-content/uploads/2021/11/minify.jpg](https://socialmediarevolver.com/wp-content/uploads/2021/11/minify.jpg)
   
   Any advice how to fix this?

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

The topic ‘Minify css problem’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 8 replies
 * 8 participants
 * Last reply from: [krisolin](https://wordpress.org/support/users/krisolin/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/minify-css-problem/#post-15034571)
 * Status: resolved