jquery window.ready code example
Example 1: jquery ready
// jQuery document ready function
$(function() {
// do stuff
});
Example 2: jquery on window ready
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});