script.js icon indicating copy to clipboard operation
script.js copied to clipboard

Add a new `preserveExecutionOrder` option

Open kl0tl opened this issue 9 years ago • 2 comments

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 ?

kl0tl avatar Aug 31 '16 15:08 kl0tl

This needs to be applied to the src/ file, not the dist/ file.

rstacruz avatar Oct 05 '16 14:10 rstacruz

@rstacruz Yes I’ve modified src/script.js :)

kl0tl avatar Oct 05 '16 15:10 kl0tl