content-loaded
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

content-loaded NPM version

use document.readyState and document.addEventListener('DOMContentLoaded') to resolve the Promise telling you when the browser is ready.

Quick example

import contentLoaded from 'content-loaded';
 
contentLoaded()
    .then(() => console.log('contentLoaded !'));

Readme

Keywords

Package Sidebar

Install

npm i content-loaded

Weekly Downloads

4

Version

1.2.1

License

MIT

Unpacked Size

1.68 kB

Total Files

4

Last publish

Collaborators

  • churpeau