@tiddo/document-ready
v1.0.1Promise 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();
npm i @tiddo/document-ready
Metadata
- MIT
- Whatever
- Tiddo Langerak
- released 12/8/2016