should i use document ready function in jquery at startup code example
Example: dom ready js
document.addEventListener("DOMContentLoaded", function() {
// code
});
document.addEventListener("DOMContentLoaded", function() {
// code
});