jquery document load shorthand code example
Example 1: document jquery
$(function(){
// equal to $( document ).ready(function() {
});
Example 2: ondocumentready
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});