does vanilla js. require document ready function code example
Example: js vanilla dom ready
document.addEventListener("DOMContentLoaded", function() {
// code
});
document.addEventListener("DOMContentLoaded", function() {
// code
});