// A $( document ).ready() block. $( document ).ready(function() { console.log( "ready!" ); });
document.addEventListener("DOMContentLoaded", function(event) { //we ready baby });
document.addEventListener("DOMContentLoaded", function(event) { //do work });
$(function() { // Handler for .ready() called. });