document jquery

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

Source

Also in JavaScript: