OnDOMReady event-- this is called when the page has finished parsing the document and has loaded the DOM into memory.
Scripts may execute before this event!
Some scripts on the page may execute before
Why don't we just always use OnWindowObjectReady?
The caveat of using
OnWindowObjectReadyis that it is only called on pages that have scripts on them, also you can't do any DOM manipulation in that event since the DOM is incomplete. In contrast,
OnDOMReadyis always called, just after the DOM has loaded.
This event is part of the
LoadListener interface, we will inherit from it and bind it to our
Updated over 2 years ago