Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
381 views
in Plugins by
Please create a plugin to Async Javascript or Defer Javascript which are render blocking

1 Answer

+2 votes
by
This is not really possible to do. Several of the JS files depend on jQuery so they cannot be loaded async.

Defer would be possible if the JS files included in Q2A were the only ones. But plugins can add their own JS and if they don’t use defer, it will break. Adding inline JS also cannot be deferred.
by
I wonder how such plugins exist for WordPress. There is a plugin called Autoptimize for WordPress which not only minifies all Javascript and CSS. But it also combines them into one. It preloads the critical path CSS. Defers the JS. It has the option to exclude the Javascript and CSS files. There are also separate plugins for Async javascript and defer Javascript.
...