Skip to content

Handle <script async> transparently #1099#1107

Merged
justin808 merged 3 commits intomasterfrom
squadette-script-async-with-justin-merge-resolution
Jun 25, 2018
Merged

Handle <script async> transparently #1099#1107
justin808 merged 3 commits intomasterfrom
squadette-script-async-with-justin-merge-resolution

Conversation

@justin808
Copy link
Copy Markdown
Member

@justin808 justin808 commented Jun 24, 2018

Fixes #290, transparently handling <script async> tag. If the document was already loaded,
the DOMContentLoaded event handler no longer fires, so we just execute it directly, the
same way as jQuery does in $.ready().

Co-authored-by: Alexey Makhotkin

Discussion in #1099.


This change is Reviewable

Fixes #290, transparently handling <script async> tag. If the document was already loaded,
the DOMContentLoaded event handler no longer fires, so we just execute it directly, the
same way as jQuery does in $.ready().

Co-authored-by: Alexey Makhotkin
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 24, 2018

Coverage Status

Coverage remained the same at ?% when pulling 9cc7e60 on squadette-script-async-with-justin-merge-resolution into 9436605 on master.

@justin808 justin808 merged commit d49a639 into master Jun 25, 2018
@justin808 justin808 deleted the squadette-script-async-with-justin-merge-resolution branch June 25, 2018 00:37
@squadette
Copy link
Copy Markdown
Contributor

Thank you!

So far it works in my testing, but more combinations of browsers / connection speeds is needed. I'll update accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants