the DOMContentLoaded event, the document.readyState property, or any of a number of JavaScript plugins, utilities, and modules that handle this event and property
The term "Dom Ready" generally refers to the DOMContentLoaded
event or the document.readyState
property, along with a number of JavaScript plugins, utilities, and modules that handle the DOMContentLoaded
event or changes to the document.readyState
property.
Syntax Examples
jQuery
$(document).ready(function() {
console.log('ready');
});
AngularJS
angular.element(document).ready(function () {
console.log('ready');
});
ded/domready
domready(function () {
console.log('ready');
})
MooTools
window.addEvent('domready', function() {
console.log('ready');
});