reddi
v0.1.3
Published
Execute code when the DOM is ready
Downloads
8
Readme
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
});
});