@tiddo/document-ready

1.0.1 • Public • Published

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();

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @tiddo/document-ready

      Weekly Downloads

      1

      Version

      1.0.1

      License

      MIT

      Last publish

      Collaborators

      • tiddo