document ready js

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

Also in JavaScript: