1.0.1 • Published 7 years ago
@tiddo/document-ready v1.0.1
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();