readyjs

2.1.0 • Public • Published

Readyjs

A tiny, modern, on-document-ready that runs any given function(s) once the document is ready or immediately if the document is ready already.

Software License

Install

npm install readyjs --save

Usage

You can either use the es6 module dist/ready.js or include the iffe from dist/ready.iffe.js straight into your build step or load it into your code.

API

// importing via es6 module syntax
import { readyjs } from '../node_modules/readyjs/dist/ready.js'
// used readyjs
readyjs(function(){
    // your code here
})
 
// when using the IIFE
readyjs.ready(function(){
    // your code here
})

Contribute

PRs welcome.

License

Software License

/readyjs/

    Package Sidebar

    Install

    npm i readyjs

    Weekly Downloads

    14

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    8.24 kB

    Total Files

    10

    Last publish

    Collaborators

    • lukasoppermann