DOMAssistant.Load Module

The DOMAssistantLoad module offers a way to call a number of functions as soon as the DOM has loaded, as opposed to waiting for all images and other external files to completely load. It was inspired and influenced by Dean Edwards, Matthias Miller, and John Resig: window.onload (again).


From any file, just call the DOMReady method with desired functions and they will be executed as soon as the DOM has loaded.


Send in any number of function references, anonymous functions or strings with function names and parentheses.

Return value


Example calls


DOMAssistant.DOMReady("myFunc('Some text')");

DOMAssistant.DOMReady(myFunc, "anotherFunction()");

DOMAssistant.DOMReady(myFunc, function(){
// Perform some magic

Download DOMAssistant

All modules in one file

DOMAssistant 2.5.7, compressed
(22kb, 7kb Gzipped)
Intended for production usage.
DOMAssistant 2.5.7, complete
Intended for learning and development usage.

Individual modules

Get your copy