document ready without jquery

JavaScript
// jQuery document ready
$(document).ready(function() {
    
});document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});$(function(){ 
	//jQuery code here 
});document.addEventListener("DOMContentLoaded", function(event) { 
  //do work
});$(function() {
  // Handler for .ready() called.
});

Source

Also in JavaScript: