What is the code for jQuery's document onload event?
When the DOM has been loaded jQuery's ready method will fire:
$(document).ready(function() { // DOM is loaded });
Demo
When the "onload" event has fired the following text will change from "DOM loading" to "DOM is loaded":
DOM Loading...