when jquery load() code example

Example: jquery onload event

// A $( document ).ready() block.
$( document ).ready(function() {
    console.log( "ready!" );
});