document ready js
snippet in javascript

dom ready js

user2766

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

jquery document ready

user2807

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

document ready

user7140

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

jquery doc ready

user5761

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

document ready js

user6081

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

document. ready

user4051

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