Created
August 22, 2017 04:05
-
-
Save eduardolundgren/1247fedb8ec26b22a83e7bc24ad7f4e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<script> | |
assert(document.readyState === 'loading'); | |
document.addEventListener("DOMContentLoaded", function() { | |
assert(document.readyState === 'interactive'); // <-- | |
setTimeout(function() { | |
assert(document.readyState === 'complete'); | |
}, 0); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment