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();
Promise that resolves when the document has triggered the DOMContentLoaded
event.
import documentReady from '@tiddo/document-ready';
async function init() {
await documentReady;
console.log("Document is ready!");
}
init();
npm i @tiddo/document-ready
0
1.0.1
MIT