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