In browsers that support the event DOMContentLoaded
and the property document.readyState
:
When
DOMContentLoaded
fires, can I assume that the value ofdocument.readyState
will always be either"complete"
or"interactive"
/"loaded"
?(Or could it be that
document.readyState
sometimes still has the value"loading"
?)
In your answer please provide a reference to an authoritative source.
You may wonder: Why not just listen to readystatechange
? It is because the Android 2.3.5 standard browser is a target platform, and it does not implement the readystatechange
event.