function on ready javascript code example
Example: document ready without jquery
document.addEventListener("DOMContentLoaded", function(event) {
//we ready baby
});
document.addEventListener("DOMContentLoaded", function(event) {
//we ready baby
});