document ready js

JavaScript
// jQuery document ready
$(document).ready(function() {
    
});document.addEventListener("DOMContentLoaded", function() {
  // code
});$( document ).ready(function() {
    console.log( "ready!" );
});
// A jQuery( document ).ready() block.
jQuery( document ).ready(function() {
    console.log( "ready!" );
});document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});$( document ).ready(function() {
    console.log( "ready!" );
});
Source

Also in JavaScript: