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