Home › Forums › WoodMart support forum › woodmart-font.woff and woodmart-font.woff2
woodmart-font.woff and woodmart-font.woff2
- This topic has 4 replies, 3 voices, and was last updated 3 years, 9 months ago by Artem Temos.
-
AuthorPosts
-
November 29, 2020 at 4:38 pm #245803
brgreeneParticipantOn the new GTMetrix Test and on the Pagespeed performance test I keep getting a message to preload woodmart-font.woff and woodmart-font.woff2. I have a cache plugin (Swift Performance) and another plugin (Perfmatters) that allows me to preload fonts but I could not get it to work so I reached out to Perfmatters. This is what the wrote:
The issue is they are getting rewritten to your CDN on the front-end. Which is good, as you want them to be loading from the CDN.
(woodmart-font-0.png)However, they are hardcoded already within your CSS (/wp-content/cache/hbr-performance/heartlandbraidedrugs.com/css/0888e6e832d0e17071a27cd7c111412c.css) on your root domain not using a relative URL. You need to get the CSS updated to point to the CDN.
(woodmart-font-1.png)And the result is they are actually now loading twice. They are getting preloaded on the CDN and then parsed from the hardcoded one on your root domain.
(woodmart-font-2.png)
It appears these are coming from your WoodMart theme. What I would do is reach out to them and see if they have a way to change the source of the icons and how they are loading them.Attachments:
You must be logged in to view attached files.November 30, 2020 at 7:13 am #245963
Artem TemosKeymasterHello,
Actually, it seems to be the way the plugin works. On your last screenshot, the “Font Awesome” library file also appears. Since it is not a part of our theme, your performance plugins load them twice. We also tested this on our demo and it works well with the WP Rocket plugin.
Kind Regards
March 4, 2021 at 6:14 pm #271047
testing123ParticipantI confirm the same issue – google page speed is recommending for my NON cdn domain to add pre-load for the font. Adding pre-loading of these fonts don’t do anything as they are automatically pointed to the CDN. (manual and wp-rocket
Any solution to this?Thanks
March 4, 2021 at 8:06 pm #271070
testing123ParticipantSolved the issue temporarily on wpengine by adding a HTML Post-Processing rule.
You can add these on your website when using wpengine: wpengine (link) -> general settings -> find block HTML post-processing rule#https?://cdn.YOURDOMAIN.com/(wp-content/themes/woodmart/fonts)/woodmart-font.woff# => https://www.YOURDOMAIN.com/$1/woodmart-font.woff
Still the css generator should generate a CDN path for the font, hope it will be fixed in upcoming release
Hope this helps someone.
March 5, 2021 at 7:07 am #271143
Artem TemosKeymasterHello,
Our CSS generator doesn’t know which CDN server do you use. If you use some CDN plugin like WP Rocket, it should automatically replace all URLs including that one to the CDN URL.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register