document ready script javascript code example Example: jquery doc on ready $(document).ready(() => { console.log('ready'); });