[Support request] Locally Hosted Fonts and some elements hooks not working on firefox

Home Forums Support [Support request] Locally Hosted Fonts and some elements hooks not working on firefox

Home Forums Support Locally Hosted Fonts and some elements hooks not working on firefox

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1072987
    24xstudio

    Hey,

    I am facing this issue where locally hosted fonts and some element hooks are not working on Firefox, while everything is working fine on Chrome.

    Here is the screenshot of the issue on Firefox: https://prnt.sc/q0qlul

    #1073242
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This is strange, check out your website source in Chrome vs Firefox – they’re different. I assume that some necessary CSS isn’t loading in Firefox.

    Must be a plugin/service you’re using. Any caching/minifying plugins? Cloudflare/Rocket Loader maybe?

    #1089020
    24xstudio

    Yes, I have tried after disabling the rocket loader, auto minify and also cleared all cache files including the Redis cache.

    I really don’t know why I am getting this error.

    #1089306
    David
    Staff
    Customer Support

    Hi there,

    looks like you have Cloudflare enabled as well – any chance you can disable that?

    #1098089
    24xstudio

    Yeah, I checked after disabling the CF, rocket loader and the cache plugins too. Nothing worked.

    Maybe this is the culprit in GP main CSS file? Check the SS: https://prnt.sc/q80s1c

    Maybe it is not reading the inherit?

    #1098142
    Tom
    Lead Developer
    Lead Developer

    That CSS wouldn’t cause any issues like this.

    Your source codes are still completely different between Chrome/Firefox. Figuring that out should fix the issue you’re having. When you disable rocket loader/cloudflare etc.., do the sources match?

    #1098368
    24xstudio

    Yeah, I have PAUSED Cloudflare and the issue is the same. The source is the same as it was when Cloudflare was enabled.

    #1098959
    Tom
    Lead Developer
    Lead Developer

    It must be something else causing the source to change, then. Server caching? A caching/minifying plugin? The only way to figure out what’s going on is to make it so the source between browsers matches. Right now it’s impossible to debug as the HTML is different.

    #1099175
    24xstudio

    Hey,

    The culprit is WP Rocket plugin. I have enabled Critical CSS which is causing the issue.

    What do you think about how I can do to resolve the issue.

    Note: I have disabled the critical CSS so that you can check from your end.

    Thanks 🙂

    #1099393
    Tom
    Lead Developer
    Lead Developer

    You might need to exclude your custom CSS containing the local fonts from the critical CSS. I don’t know a lot about WP Rocket, but that should be possible.

    #1099471
    24xstudio

    It’s not about the fonts only.

    Some hooks were also not working.

    Here is the screenshot of the issue on Firefox: https://prnt.sc/q0qlul

    #1100108
    Tom
    Lead Developer
    Lead Developer

    The search icon is due to the necessary CSS not loading. Perhaps the critical CSS they’re loading is missing CSS which is actually critical?

    Not sure what the other red boxes are showing?

    #1100362
    24xstudio

    The issue is whenever I am trying to create critical path CSS it does not include my fonts.

    I have disabled the WPRocket and using third party site to generate the CSS path: https://www.sitelocity.com/critical-path-css-generator

    I am stuck in no man’s land now!

    #1100447
    Tom
    Lead Developer
    Lead Developer

    So where are you adding your local fonts CSS? Is there any way to tell WP Rocket to include it in the critical CSS? I’m afraid I’m not much help here as I don’t know enough about how WP Rocket works/generates critical CSS. I assume there’s a way to choose what is and isn’t added?

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.