Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    AsyncJS adds defer='defer' to the <script nodes with a src attribute, I had a look and this happens both on your homepage and on /bale-home so from AsyncJS all is OK. The fact that GTmetrix still lists some JS as render-blocking is not somethings AsyncJS can help with I’m afraid.

    frank

    Thread Starter onyekaxt

    (@onyekaxt)

    hi

    so your plugin doesn’t work for external scripts like googles’?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well, the defer='defer' code that AsyncJS injects are present, so all JS linked in the HTML should effectively be deferred. I *guess* this could be a gtmetrix mistake, does Google PageSpeed Insights lists those JS-files as render-blocking?

    Thread Starter onyekaxt

    (@onyekaxt)

    hi
    i have not checked with Google PageSpeed.
    but you did not answer my question directly.

    Onyeka

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AsyncJS adds defer (or async) flags to all JS files linked in your HTML (including Google’s), so it _should_ work, which is why I suspect these are false positives from GTMetrix and why I propose to test in GPSI which in my experience has a better view on render-blocking issues 🙂

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

The topic ‘Defer Specific Scripts’ is closed to new replies.