onReady: function() code example
Example 1: document ready
$( document ).ready(function() {
console.log( "ready!" );
});
Example 2: ready function jquery
ready function js
$( document ).ready(function() {
console.log( "ready!" );
});
ready function js