include jquery on page load code example Example: document. ready $( document ).ready(function() { console.log( "ready!" ); });