mr.fishhead
-3
Q:

DOMContentLoaded

document.addEventListener("DOMContentLoaded", function() {
  // code
});
9
window.addEventListener('DOMContentLoaded', (event) => {
    console.log('DOM fully loaded and parsed');
});
9
<!-- The DOMContentLoaded event will fire as soon as the DOM hierarchy has been
 fully constructed (Doesn't wait for images, CSS, advertisements to load),
 the load event will do it when all the images and sub-frames have 
finished loading. -->
1

Related

New to Communities?

Join the community