• Resolved mperry8304

    (@mperry8304)


    I’m running your plugin on various sites. I’m trying to make the sites load faster and pass Google’s Core Web Vitals. As a part of that, I’ve found a tool that looks for synchronous JS files. It’s identified the below file. Is there way to make it into an asynchronous JS file?

    /wp-content/plugins/add-to-any/addtoany.min.js?ver=1.1

    BTW, that this file is already an Asynchronous JS file:
    https://static.addtoany.com/menu/page.js

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author micropat

    (@micropat)

    I recommend using Frank’s Async JavaScript plugin to make this happen.

    But instead of async, you’ll want defer for the same optimization while ensuring the file’s jQuery dependency is resolved.

    In the Async JavaScript’s plugin setting, add addtoany.min.js to “Scripts to Defer” then save your settings.

Viewing 1 replies (of 1 total)
  • The topic ‘Synchronous JS File’ is closed to new replies.