reddi

0.1.3 • Public • Published

reddi

A tiny, UMD script that executes code when the DOM is ready

Usage

Global

reddi(function () {
  // This code will execute only once the DOM has loaded
});

CommonJS

var reddi = require('reddi');
reddi(function () {
  // This code will execute only once the DOM has loaded
});

AMD

define(['reddi'], function (reddi) {
  reddi(function () {
    // This code will execute only once the DOM has loaded
  });
});

/reddi/

    Package Sidebar

    Install

    npm i reddi

    Weekly Downloads

    0

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • nsand