readyState

The Document.readyState property describes the loading state of the document. When the value of this property changes, a readystatechange event fires on the document object.

MDN Reference