DOMIsReady
Simple front-end CommonJS module - a handy function to ensure the DOM is fully ready before executing provided functionality.
Install
npm i dom-is-ready -S
Inclusion
var DOMIsReady = ;
Usage
/** * @name DOMIsReady * @version 1.0.1 * @author Claudio Nuñez Jr. * @desc Simple front-end CommonJS module - a handy function to ensure the DOM * is fully ready before executing provided functionality. Inspired by the * following: * Diego Perini (https://github.com/dperini/ContentLoaded/tree/v1.2) * Nic Bell (https://github.com/nicbell/liteready) * Noor Dawod (https://github.com/noordawod/dom-ready) * * @param context * @param handler * ->param */ // DOMIsReady(context, handler) var DOMIsReady = ; // Do something when the DOM is ready!;