https://github.com/tiaanduplessis/imready
Promise based wrapper for DOMContentLoaded
https://github.com/tiaanduplessis/imready
dom onready ready
Last synced: 10 months ago
JSON representation
Promise based wrapper for DOMContentLoaded
- Host: GitHub
- URL: https://github.com/tiaanduplessis/imready
- Owner: tiaanduplessis
- License: mit
- Created: 2017-07-11T14:00:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:53:07.000Z (about 7 years ago)
- Last Synced: 2025-07-13T11:47:15.473Z (11 months ago)
- Topics: dom, onready, ready
- Language: JavaScript
- Size: 158 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @tiaanduplessis/imready
[](https://npmjs.org/package/@tiaanduplessis/imready)
[](https://npmjs.org/package/@tiaanduplessis/imready)
[](https://github.com/RichardLitt/standard-readme)
[](https://npmjs.org/package/@tiaanduplessis/imready)
[](http://makeapullrequest.com) [](https://greenkeeper.io/)
> Like jQuery ready, but vanilla JS
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#License)
## Install
This project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).
```sh
$ npm install @tiaanduplessis/imready
$ # OR
$ yarn add @tiaanduplessis/imready
```
## Usage
```js
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