jquery on page load code example
Example 1: jquery document ready
$(document).ready(function() {
});
Example 2: document ready
$( document ).ready(function() {
console.log( "ready!" );
});
Example 3: jquery run after page load
$(window).on('load', function() {
});
Example 4: call a function on load jquery
$(document).ready(function () {
});
Example 5: jquery doc ready
jQuery( document ).ready(function() {
console.log( "ready!" );
});
Example 6: jquery onload event
$( document ).ready(function() {
console.log( "ready!" );
});