Snippets
Detect when the document is ready:
document.addEventListener('DOMContentLoaded', function () {
// Something
});
Detect when the document is ready:
document.addEventListener('DOMContentLoaded', function () {
// Something
});