1window.addEventListener('DOMContentLoaded', (event) => {
2 console.log('DOM fully loaded and parsed');
3});
4
1document.addEventListener('DOMContentLoaded', (event) => {
2 console.log('DOM fully loaded and parsed');
3});
1import domloaded from 'domloaded';
2domloaded(() => { /* dom is loaded... */ });