$( document ).ready() $( document ).ready(function() { console.log( "ready!" ); }); // Shorthand for $( document ).ready() $(function() { console.log( "ready!" ); });