/imready

Promise based wrapper for DOMContentLoaded

Primary LanguageJavaScriptMIT LicenseMIT

Spongebob

@tiaanduplessis/imready

package version package downloads standard-readme compliant package license make a pull request Greenkeeper badge

Like jQuery ready, but vanilla JS

Table of Contents

Install

This project uses node and npm.

$ npm install @tiaanduplessis/imready
$ # OR
$ yarn add @tiaanduplessis/imready

Usage

import imready from '@tiaanduplessis/imready'

imready.then(loaded => console.log('DOM Loaded:', loaded))

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am 'Add some feature'
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT