> Tiny function that tells you when the document is ready.
npm install @document/ready> Tiny function that tells you when the document is ready.
``yarn
yarn add @document/ready
Usage
`typescript
import ready from '@document/ready';ready(() => {
console.log('🎉 Whoop whoop. The document is ready');
});
`API
$3
Create a dom ready listener.
####
cb: () => void`A callback function which will be called when the document is ready.
#### Returns
Returns a dispose function. If you call it, the listener will be revoked.
MIT © Tobias Herber
