Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Fix race condition in script loading #605

Merged
merged 2 commits into from
Nov 1, 2018
Merged

Conversation

rtsao
Copy link
Member

@rtsao rtsao commented Nov 1, 2018

Because dynamically inserted scripts are implicitly async by default (which takes precedence over defer), a race condition was introduced where bundle scripts might be executed early and/or out-of-order.

This change forces these scripts to be explicitly not async, so the defer attribute will work.

@rtsao rtsao added the bugfix label Nov 1, 2018
@rtsao rtsao requested a review from angus-c November 1, 2018 21:18
@rtsao
Copy link
Member Author

rtsao commented Nov 1, 2018

!merge

@old-fusion-bot old-fusion-bot bot merged commit c6fa6b0 into master Nov 1, 2018
@KevinGrandon KevinGrandon deleted the script-race-condition branch November 1, 2018 22:24
@AlexMSmithCA AlexMSmithCA mentioned this pull request Nov 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants