• Resolved quyle

    (@quyle)


    Hi there,
    Thanks for creating helpful plugin. I’d love it!
    I have a question.
    I put my js script, which is wp-includes/js/jquery/ to defer section, but when it view-source my site, it shows that the jquery.js from wp-include is set to async.
    I don’t why is that.
    May you please help?
    And one more thing is how this plugin complements your Autoptimize plugin?
    As I see that without using Async JavaScript plugin and using Autoptimize alone, my javascript files were still optimized, deferred and put at the end of the file already.
    So at the end, Do I really need Async JavaScript?

    Thank you very much and best regard! ??

    • This topic was modified 4 years, 10 months ago by quyle.
    • This topic was modified 4 years, 10 months ago by quyle.
    • This topic was modified 4 years, 10 months ago by quyle.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    So at the end, Do I really need Async JavaScript?

    only if you have 3rd party JS which AO can’t optimize ??

    Thread Starter quyle

    (@quyle)

    Thanks for your reply… ??
    But I still don’t understand why </script>"><script type='text/javascript' async='async' src='https://sukhavati.xyz/wp-includes/js/jquery/jquery.js'></script> is async while all other scripts in /wp-includes/js/jquery/ are deferred?

    • This reply was modified 4 years, 10 months ago by quyle.
    • This reply was modified 4 years, 10 months ago by quyle.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    because all other scripts, including the ones in /wp-includes/js/jquery/ are optimized by AO, which defers aggregated JS ??

    Thread Starter quyle

    (@quyle)

    Thanks for your reply and dedication… ??
    But the script "https://sukhavati.xyz/wp-includes/js/jquery/jquery.js" is located at /wp-includes/js/jquery/ so logically, it should have been deferred like all other scripts but that script is sync instead? I am puzzled!!!!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    because jquery.js is excluded from JS optimization by default ??

    Thread Starter quyle

    (@quyle)

    Thanks for your answer ??
    My next question is whenever I open a post, the images on that page does not load at all… I tried clear cache on my browser and Crl+F5, but sometimes it works, sometime it does not… But things just work well when I clear Autoptimize cache.
    It happens in Firefox only.
    For example this post: https://sukhavati.xyz/nho-anh-trai-khai-thi-va-tro-niem-nguoi-em-duoc-phat-bao-truoc-gio-vang-sanh/
    I am not sure why it that?
    Thank you and best regards,
    Q.
    P/s: I did not enable any options in “Images” tab as I have ShortPixel Adaptive Images installed already.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I’m seeing “tdBlock is not defined” JS errors on the browser console, you’ll probably have to exclude the tagdiv JS from JS optimization.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘set “defer” but show “async”??’ is closed to new replies.