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

Readme

Keywords

none

Package Sidebar

Install

npm i @tiddo/document-ready

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tiddo