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).
DOMReady()
From any file, just call the DOMReady method with desired functions and they will be executed as soon as the DOM has loaded.
Parameters
Send in any number of function references, anonymous functions or strings with function names and parentheses.
Return value
None.
Example calls
DOMAssistant.DOMReady(myFunc);
DOMAssistant.DOMReady("myFunc('Some text')");
DOMAssistant.DOMReady(myFunc, "anotherFunction()");
DOMAssistant.DOMReady(myFunc, function(){
// Perform some magic
});
DOMAssistant.Load methods
DOMAssistant modules
- DOMAssistant Core
- DOMAssistant.AJAX
- DOMAssistant.Content
- DOMAssistant.CSS
- DOMAssistant.Events
- DOMAssistant.Load
CSS selectors
Download DOMAssistant
All modules in one file
-
DOMAssistant 2.5.7, compressed
(22kb, 7kb Gzipped) - Intended for production usage.
-
DOMAssistant 2.5.7, complete
(43kb) - Intended for learning and development usage.