js document ready
snippet in javascript

dom ready js

user808

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

jquery doc ready

user4411

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

document ready without jquery

user2529

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

document ready javascript

user313

$(document).ready(function(){
  $("button").click(function(){
    $("p").slideToggle();
  });
});

document ready

user2379

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

js document ready

user2449

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