document.addEventListener('DOMContentLoaded', () => { // Code goes here })