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