how to wait for the dom ready event in typescript code example
Example: wait for the dom to load javascript
document.addEventListener('DOMContentLoaded', (event) => {
//the event occurred
})
document.addEventListener('DOMContentLoaded', (event) => {
//the event occurred
})