Site logo

[Resolved] optimization & font-awesome

Home Forums Support [Resolved] optimization & font-awesome

Home Forums Support optimization & font-awesome

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #331524
    dale

    Hi guys,

    I found the https://generatepress.com/fastest-wordpress-theme/ article really helpful for my site. Curious about a couple things:

    Do you still recommend having both Remove Query Strings and Autoptomize? Or if I have Autoptomize, does that make Remove Query Strings superfluous?

    I was looking at my 404s today and found these listed:

    /fonts/fontawesome-webfont.ttf
    /fonts/fontawesome-webfont.woff
    /fonts/fontawesome-webfont.woff2
    /fonts/fontawesome-webfont.ttf?v=4.7.0
    /fonts/fontawesome-webfont.woff?v=4.7.0

    I implemented your suggestion for reducing the number of font-awesome icons that load, so I wonder if these 404s might be a result of that? If so, I won’t worry about them.

    #331609
    Tom
    Lead Developer
    Lead Developer

    Removing query strings gives you better visual scores, but can be a pain when it comes to browser caching.

    Autoptimize is great.

    Can you link me to your site where those files are returning a 404?

    #331622
    dale

    https://dalecameronlowry.com

    I have noticed that font-awesome icons are loading slowly — usually after everything else on the page. So maybe that’s part of it.

    #331634
    Tom
    Lead Developer
    Lead Developer

    Can you try clearing and deactivating any caching/minifying plugins (like Autoptimize).

    If using Autoptimize, make sure you’re using the options I’ve specified on the article you linked to.

    #331692
    dale

    I wasn’t exactly clear which ones you wanted me to turn off. I cleared everything and turned off the ones that weren’t listed in the article (like WP Supercache), but only cleared Autoptomize but left it on with the indicated settings.

    Didn’t do anything with Remove Query Strings or Ansync Java Script. Let me know if you want all turned off.

    I also put Cloudflare in development mode so it shouldn’t be serving cached files

    #331776
    Tom
    Lead Developer
    Lead Developer

    Can you turn off Autoptimize as well? I’d like to be able to read your source code.

    #331819
    dale

    Okay. Turned of Autoptomize, plus Async Java and Remove Query Strings. Let me know if I should do anything else.

    #331848
    Tom
    Lead Developer
    Lead Developer

    Ok, so I’m seeing the regular GP font awesome call (no essentials). It’s linking to the fonts, which indeed exist: https://dalecameronlowry.com/wp-content/themes/generatepress/fonts/fontawesome-webfont.eot

    I’m also seeing Elementor calling for Font Awesome, and those fonts are loading as well.

    I’m also not seeing any 404 errors in the developer tools console.

    #332132
    dale

    Thanks. Looks like I accidentally deactivated the Font Awesome essentials code in Code Snippets.

    In any case, I’m still having the loading problem on some pages of my website, particularly category and post pages: https://dalecameronlowry.com/category/for-writers/calls-for-submissions/

    The only icon I can see in my social media menu (right hand side of footer) is the Patreon icon, which is an img and not a FontAwesome icon.

    #332206
    Tom
    Lead Developer
    Lead Developer

    The essentials filter only loads the absolute necessary icons for the theme to work. The social icons aren’t in that list of essential icons.

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