script.js
script.js copied to clipboard
Add a new `preserveExecutionOrder` option
According to this article, setting the async property of dynamically created scripts to false let the browser download them in parallel (unlike $script.order) but preserve the execution order. The difference is mostly visible on mobile devices with slow connection.
Is there any drawbacks of this approach ?
This needs to be applied to the src/ file, not the dist/ file.
@rstacruz Yes I’ve modified src/script.js :)