Archived topic
Fontello is slowing down my website
11 replies · Started by Kim on March 9, 2016
Hi
I've discovered that fontello inside Lightweight Social Icons is slowing down my website. Fontello.woff takes around 700 ms to load while the whole page loads in 2,7 seconds. A lot of time is wasted loading fontello.
Anyone else seen this before, and is there a solution to it?
Regards, Kim
That's interesting - it's only a 15KB file, so it shouldn't take long to load at all.
I'm afraid it's an essential font file to make Lightweight Social Icons work.
I would assume there's something going on with your server, but you may be better off using images if the fonts are taking too long to load.
Hi Tom
Thanks for the answer. I'll see if something can be done with my server.
Sounds good, let me know how it goes :)
Hello
I have the same problem on my website https://marcdietschi.com
I've tried this solution.
add_filter('avf_font_display', function($swap) {
return 'swap';
}, 10, 1);add_filter('avf_google_fontlist', 'add_font_display');
function add_font_display ($fonts) {
return $fonts.='&display=swap';
}
But PageSpeed Insights is still telling me, that …fonts/fontello.woff(k2s7a9u3.rocketcdn.me) is slowing down my page. Maybe it helps with your Website.
Ideally, Lightweight Social Icons should be using SVGs these days. However, I believe our GenerateBlocks plugin will likely replace its functionality in the near future.
Hi Tom,
Do you know if or when this will be added to GenerateBlocks please?
Currently I am only using the lightweight social icons in the footer, so they're not even visible to a user until he scrolls down to the bottom. Is there anything I can do to avoid the red warning from Google pagespeed please?
Many thanks
sebastien
Not at the moment.
You can always just use SVGs in your footer for the icons if you don't want to use LSI.
Thank you!
No problem!
Hi Tom,
I have the same issue here, but because I tried replacing Lightweight Social Icons plugin with GenerateBlocks.
After removing the Lightweight Social Icons plugin from my website, I got speed issues because of the fontello.woff file. In the GTMetrix analysis, it seems that when the page load, it's trying to find the file and then cancel the action.
I looked in the Cpanel and the plugin is gone and I'm not able to find the fontello.woff file either. I cleared the cache and I still have this issue. Is there a way to solve this issue and make sure the website don't try to load this file?
EDIT : After some manipulations here and there, it seems to be resolved, but I don't know what really solved the issue. If I have more information or if the issue reappear I will post here again.
In any case, replacing Lightweight Social Icons with GenerateBlocks works like a charm. Thank you for the great plugins!
Hi there,
theres a possibility that the file request was cached somewhere, and it took a little while for that to clear.
Glad to hear its now working correctly and with GenerateBlocks!