document ready without jquery

JavaScript
document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});document.addEventListener("DOMContentLoaded", function(event) { 
  //do work
});
Source

Also in JavaScript: