ajax on page load code example
Example 1: jquery on document ready
$( document ).ready(function() {
console.log( "ready!" );
});
Example 2: ajax run function after page load
$(document).ready(function() {
// Code to run as soon as the page is ready
})