Cross-browser DOMContentLoaded event handling. Usage var ready = require('dom.ready'); ready(function() { // Execute when DOM ready });