$(window).on in javascript shorthand code example
Example 1: document ready jquery
$(function() {
// Handler for .ready() called.
});
Example 2: jquery document ready shorthand
jQuery(function() {
// Code here
});
$(function() {
// Handler for .ready() called.
});
jQuery(function() {
// Code here
});