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)
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.
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 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.
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.
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.
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://ww.wp.xz.cn/support/topic/lettertype-probleem-3-1-9/
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.
the problem persists with the update. has anyone figured a way around this?
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
Any advice how to fix this?