Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle <script async> transparently #1099 #1107

Merged
merged 3 commits into from
Jun 25, 2018

Conversation

justin808
Copy link
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

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
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