@tiddo/document-ready
v1.0.1
Published
Promise that resolves when the document has triggered the `DOMContentLoaded` event.
Downloads
2
Readme
Promise that resolves when the document has triggered the DOMContentLoaded
event.
Usage
import documentReady from '@tiddo/document-ready';
async function init() {
await documentReady;
console.log("Document is ready!");
}
init();