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