This plugin is not working with font awesome. My website still shows the issue “Ensure text remains visible during Webfont load” error?
]]>hi
as the title mentioned, is it possible to have webmaster to switch to their desired value instead of “swap” ? i need my google font css displayed as “optional”
]]>I tried this plugin on a couple if Divi websites (the one in the topic link has the plugin active) but it doesn’t seem to work. Do you know if Divi is handling fonts in a way that doesn’t work with this plugin?
I saw this topic but it’s closed for new comments: https://www.ads-software.com/support/topic/not-working-with-divi-16/
]]>Hi!
Looks like doesn’t work with my Elementor based page https://helloclerk.io/ can you please check? Thanks!
]]>Hi:
What is the latest version of PHP that the plugin supports?
Thanks ??
]]>Hi Gijo,
I’ve tried to use your plugin Swap Google Fonts Display but it doesn’t work. “Ensure text remains visible during webfont load” remains as issue in Lighthouse.
]]>Hello
I installed the plugin but when I check PageSpeed Insights, it seems the plugin isn’t work?
]]>Hi,
Tried this plugin with Divi theme and it seems to have no effect.
Any ideas?
Wayne
]]>I installed this plugin for Ensure text remains visible during webfont load trying to speed up my web site. I get same result I don’t know if this plugin is working on my web site. How do I know if it’s working and if it has some effect?
]]>Hi,
I still have the same message “Ensure text remains visible during webfont load”. Can you help? I am not sure how do I get rid of this.
Thanks,
Syed
Suggestion for improvement: Elementor loads its icons without the Swap attribute, and it would be nice if your plugin would intercept them too.
]]>Could add compatibility for Elementor plugin and Directorist plugin ?
]]>Hi Gijo,
just small suggestion, when you’re using Litespeed plugin and you have active “Load Google Fonts Asynchronously”, your plugin won’t work. Maybe can be solved but if not at least you can display a warning about it. Thank you!
Hi,
I have installed your plugin and I’ve been using the Shapely theme for my site for quite some time now.
It injects the following, even after your plugin has been fully activated:
<link rel=stylesheet id=shapely-fonts-css href='//fonts.googleapis.com/css?family=Raleway%3A100%2C300%2C400%2C500%2C600%2C700&ver=5.3.2' type=text/css media=all
As you can see, display=swap has not been added. I’m also using W3 Total Cache. Currently minifying and combining HTML, CSS and JS
]]>Hi Gijo,
I’ve been having trouble updating the Swap Google Fonts Display plugin, which has been showing these error messages on my homepage for a while. Can you please help me re-install the plugin & get rid of the error messages? I’m pretty sure it’s no longer working, but I can not uninstall OR update the plugin via WordPress.
Thank you! –?Sasha
Warning: fopen(/home/customer/www/example.com/public_html/wp-content/plugins/swap-google-font-display/google-font-display-swapper.php): failed to open stream: No such file or directory in /home/customer/www/example.com/public_html/wp-includes/functions.php on line 5782
Warning: fread() expects parameter 1 to be resource, boolean given in /home/customer/www/example.com/public_html/wp-includes/functions.php on line 5785
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/customer/www/example.com/public_html/wp-includes/functions.php on line 5788
Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/example.com/public_html/wp-includes/functions.php:5782) in /home/customer/www/example.com/public_html/wp-includes/functions.php on line 6029
The plugin swap-google-font-display/google-font-display-swapper.php has been deactivated due to an error: Plugin file does not exist.
]]>Hi
I recently installed this wonderful plugin but this last few days, been getting errors below. I wonder what they are.
PHP message: PHP Warning: fopen(/var/www/example.com/wp-content/plugins/swap-google-font-display/google-font-display-swapper.php): failed to open stream: No such file or directory in /var/www/example.com/wp-includes/functions.php on line 5766
PHP message: PHP Warning: fread() expects parameter 1 to be resource, bool given in /var/www/example.com/wp-includes/functions.php on line 5769
PHP message: PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/example.com/wp-includes/functions.php on line 5772" while reading response header from upstream, client: 110.159.188.22, server: example.com, request: "POST /wp-admin/admin-ajax.php?_fs_blog_admin=true HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "example.com", referrer: "https://example.com/wp-admin/plugins.php"
Thanks.
]]>Hello!
Pls add support W3 Total Cache
if(!is_admin()) {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
if ( is_plugin_active( 'w3-total-cache/w3-total-cache.php' ) ) {
add_filter('w3tc_pagecache_set', 'google_fonts_ds_inject_display_swap');
}
ob_start("google_fonts_ds_inject_display_swap"); //Need for First load
}
]]>
swap-google-font-display/swap-google-font-display.php Disabled due to error: plugin file not found
]]>hello i installed the plug-in but google insights tells the same for Google fonts i cleared the cache everything can you please help me ?
the website is https://www.insect.gr
]]>I read your other messages with the same issue but they don’t display the resolution.
My assumption is this plugin automatically adds the display swap automatically without any further input on my part but it’s just not working when I check my site in Lighthouse.
I tried adding the code myself in the header section of the site but that had no effect either. My theme buries these details making them impossible to find as I would think it would be in the style.css sheet but it’s not. Otherwise, I’d do it myself.
Any other suggestions?
]]>I have added your plugin to my WordPress site, but when I try google lighthouse I see lighthouse complaining about .woff2 files.
I think, the google fonts with woff2 extension is not handled by this plugin. Woff and ttf etc are working fine.
]]>You have provided support for font.googleapis.com but what about the fonts retrieved from fonts.gstatic.com please.
That can also be taken care of.
]]>Hi!
I installed the plugin but when I check my page on PageSpeed Insights, it seems the plugin isn’t working?
My site: https://www.devideoproducers.nl
Thanks!
]]>Hi,
Can you please add a filter to google_fonts_ds_inject_display_swap()
?
I want to add following code in order to make it work with web font loader:
preg_replace("/(WebFontConfig\['google'\])(.+[\w])(.+};)/", '$1$2&display=swap$3', $head);
Right now I had no other choice but to add this to plugin file and so I have. But I would appreciate if you could simply introduce a filter before returning the $head
variable.
Thanks
]]>It seems it does not add the swap display to fonts from https://fonts.gstatic.com
why?
]]>Hi,
Thank you for your time developing this plugin.
I have a WordPress 5.2 Multisite where I have enable the plugin Network Activate
Then I have verify pagespeed insight but it Ensure text remains visible during webfont load is still reported.
I’m not sure if there’s any limitation?
I’m using Astra Theme so you may want to test it with the theme.
Thank you,
Best Regards
Noice!
Few observations: you add “display=swap” before “family” but caching depends on the order in the query string. So I would imagine people adding it after so your plugin could lead to a request even if the css is in the cache.
Also after someone has installed your plugin, the theme developer might add swap himself/herself, so you have to check for that too.
]]>