An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          


Spongebob

# @tiaanduplessis/imready
[![package version](https://img.shields.io/npm/v/@tiaanduplessis/imready.svg?style=flat-square)](https://npmjs.org/package/@tiaanduplessis/imready)
[![package downloads](https://img.shields.io/npm/dm/@tiaanduplessis/imready.svg?style=flat-square)](https://npmjs.org/package/@tiaanduplessis/imready)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![package license](https://img.shields.io/npm/l/@tiaanduplessis/imready.svg?style=flat-square)](https://npmjs.org/package/@tiaanduplessis/imready)
[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/imready.svg)](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