Published
- 1 min read
wait for the dom to load javascript
The solution for this is noted below
wait for the dom to load javascript
Solution
document.addEventListener('DOMContentLoaded', (event) => {
//the event occurred
})
Try other methods by searching on the site. That is if this doesn’t work