jQuery DOMTimers – Deferred callbacks when DOM loads and renders.

Adds two functions to the jQuery library: $.DOMReady() – Returns a Deferred that resolves when the DOM is ready. $.DOMRendered() – Returns a Deferred that resolves when the DOM has finished rendering the HTML.