Skip to content

Conversation

@kaisermann
Copy link
Contributor

Sometimes the DOMContentLoaded event has already been fired. To make sure the loadEvents() method is always executed, we should check the document.readyState and, if it’s already defined as "complete", execute the callback immediately.

Reference

@QWp6t QWp6t mentioned this pull request Nov 7, 2016
@retlehs
Copy link
Member

retlehs commented Nov 17, 2016

closed by #1751

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.

2 participants