I\'m trying to help developing a library and for it I\'m trying to work with page loading. In the process I want to make the library completely compatible with the use o
If you want to know "exactly" if DOMContentLoaded was fired, you could use a boolean flag like this:
var loaded=false; document.addEventListener('DOMContentLoaded',function(){ loaded=true; ... }
then check with:
if(loaded) ...