js load() code example Example: load js window.addEventListener('load', (event) => { console.log('page is fully loaded'); });