Site logo

[Resolved] Hook Element doesn’t remove Preload Key Requests warning

Home Forums Support [Resolved] Hook Element doesn’t remove Preload Key Requests warning

Home Forums Support Hook Element doesn’t remove Preload Key Requests warning

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1745759
    John

    Hi GP,

    I use Tom’s older plug-in (Lightweight Social Icons) on my website. It uses the Fontello font which PageSpeed Insights is flagging me to preload it.

    So I created this hook element in wp_head:

    <link rel=”preload” href=”https://www.yourdomain.com/wp-content/plugins/lightweight-social-icons/fonts/fontello.woff&#8221; as=”font” type=”font/woff” crossorigin>

    And under “Display Rules”, selected “Entire Site” for Location.

    The error is still showing in PSI though. Help please.

    Thanks,
    John

    #1746313
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to your site so we can see whats happening.

    #1746523
    John

    Hi David,

    The site link is included in my original post.

    Thanks,
    John

    #1746828
    David
    Staff
    Customer Support

    Sorry – must get my eyes tested 🙂

    The URL in the <link> is wrong:

    https://www.yourdomain.com/wp-content/plugins/lightweight-social-icons/fonts/fontello.woff

    You need to change the top level URL https://www.yourdomain.com/ for your site url.

    #1746867
    John

    Opps, I put the default URL when I added the ‘crossorigin’ at the end. I changed it back, but it’s still showing up as not preloaded…

    My eyes get tested all the time too apparently 🙂

    Can you look again and see what I’m doing wrong?

    #1746933
    David
    Staff
    Customer Support

    In your preload did you leave the www. ? as thats not required.

    #1747195
    John

    David – you’re the man! Removing the www portion fixed it. THANK YOU!

    #1747860
    David
    Staff
    Customer Support

    Glad to be of help!

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