Home Forums WoodMart support forum woodmart-font.woff and woodmart-font.woff2

woodmart-font.woff and woodmart-font.woff2

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #245803

    brgreene
    Participant

    On 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.
    #245963

    Artem Temos
    Keymaster

    Hello,

    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

    #271047

    testing123
    Participant

    I 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

    #271070

    testing123
    Participant

    Solved 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.

    #271143

    Artem Temos
    Keymaster

    Hello,

    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

Viewing 5 posts - 1 through 5 (of 5 total)