Re:How to Get 100/100 Google Page Speed Score with Middleman...
by ko27 on Friday October 20, 2017 @05:50PM
(#15519350)
There is a way: ES6 modules. If you can account for the order of execution (with modules or custom loaders) async is, in almost all cases, the best way to load your scripts. Defer (or body-end) scripts also specify the execution order, but only in a strictly linear fashion which usually has a performance hit.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by cisanti on Friday October 20, 2017 @06:52PM
(#15519645)
But there is, it's called defer?!
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by codedokode on Saturday October 21, 2017 @02:56AM
(#15520976)
You also need to hide JS controls before the scripts are loaded or you will get "dead" buttons that are visible but don't react to clicks.
Why on earth when they introduced it they didn't add a way to tell the browser the order of execution ? Or may be it exists and I haven't heard about it ?