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