document.addEventListener('DOMContentLoaded', function() { console.log("The dom has loaded!") })