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