html-ready
The promise to ensure window/document is ready.
Install
Using npm:
$ npm install html-ready
Usage
; documentReady; windowReady;
API
Event | undefined>
documentReady: Promise<documentReady
is a Promise
that is resolved if the HTML document has been loaded and parsed. If the hole page has not loaded, the timing is equivalent to the DOMContentLoaded
event of document.
Event | undefined>
windowReady: Promise<windowReady
is a Promise
that is resolved if the hole page has been loaded. If the hole page has not been loaded, the timing is equivalent to the load
event of window.