javascript

vanilla javascript

page loaded

  • should only be necessary from head. if js is in the body, the dom should already be loaded document.addEventListener("DOMContentLoaded", function() { console.log('dom loaded'); });