• Resolved ananotheruser

    (@ananotheruser)


    Hello,

    When I go on my website and I open the dev tools (F12) from Chrome, there is this error :

    The resource https://static.addtoany.com/menu/svg/icons.21.svg.js was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it wasn’t preloaded for nothing.

    How can I fix it ? I tried to enqueued this script in my funtions.php but didn’t work.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    That’s not an error, it’s a warning:

    Please make sure it wasn’t preloaded for nothing.

    It definitely wasn’t preloaded for nothing. The icons preload is a modern optimization that serves AddToAny assets most efficiently (one network connection instead of multiple).

    Enqueuing the script is quite unnecessary, slower even, so don’t do that. ??

    Thread Starter ananotheruser

    (@ananotheruser)

    Hello,

    Ok, I wanted to be sure. ??

    Thank you for your fast reply and for the explanations. ??

    • This reply was modified 7 years, 10 months ago by ananotheruser.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS preloaded but not used’ is closed to new replies.