Javascript document ready
snippet in javascript

js vanilla dom ready

user5766

document.addEventListener("DOMContentLoaded", function() {
  // code
});

jquery document ready

user2773

// jQuery document ready
$(document).ready(function() {
    
});

document ready

user1949

$( document ).ready(function() {
    console.log( "ready!" );
});

jquery doc ready

user7617

// A jQuery( document ).ready() block.
jQuery( document ).ready(function() {
    console.log( "ready!" );
});

Javascript document ready

user6834

document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});

javascript document ready

user6962

$( document ).ready(function() {
    console.log( "ready!" );
});