Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    yes you can defer, on condition the 3rd party JS is linked directly in the HTML source.

    re. what to enter in the defer field; you can add part of the URL (domain or part of the path).

    hope this helps,
    frank

    Thread Starter Imagenevrsmer

    (@nevrsmer)

    Hello Frank,

    Thank you for the quick reply and information.

    How can I determine if third-party JS is linked directly in the HTML source? If it’s not, is it possible to do so? Sorry, I’m not a developer or coder.

    Gotta love Google! They demand speed and security, yet it’s as if they go out of their way to make your site as slow as possible by implementing their products like ReCaptcha.

    Again, many thanks, Frank!

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    in the browser on your site do ctrl-u to see the HTML source and then ctrl-f to see if you can spot those URL’s.

    Thread Starter Imagenevrsmer

    (@nevrsmer)

    Hi Frank,

    I can find only one of them: <script type=”text/javascript” src=”https://www.google.com/recaptcha/api.js&#8221; id=”google-recaptcha-js”></script>

    Since the other JS scripts related to ReCaptcha aren’t referenced in the HTML, does that mean nothing can be done about deferring them so they are not render blocking?

    Thanks!

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    try asyncing that one, it’s possible that asyncing that asyncs all (as I assume the other two are called by recaptcha/api.js?

    Thread Starter Imagenevrsmer

    (@nevrsmer)

    Hello Frank,

    Support for your free plugins is better than what I was getting from WP-Rocket ($49.00) per year! You are fantastic! Thanks!

    Regarding the JS for Google’s ReCaptcha, there are 3 instances for google.com and 3 JS for gstatic.com. 2 of them for static.com are the same script (why they are repeated, I don’t know, as we only have ReCaptcha on that page one time, and one loads really slowly – 700ms+).

    What I’ll do is us the Async JS option in Autoptimize in the Extras section for third-party scripts instead of using the Async JS plugin, as I was able to sufficiently optimize the JS using AO.

    Thank you for al your help, Frank, and have a good day and weekend.

    Cheers!

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Does Async JS Defer Parsing of Third-Party JS?’ is closed to new replies.