Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery document ready

// new version
$(function () { 
  
});


//old version
$(document).ready(function() {
    
});

// jQuery Shorthand ----------------------------
$(() => {
    // ...
});

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

$(document).ready(() => {
	console.log('ready');
});
 
PREVIOUS NEXT
Tagged: #jquery #document #ready
ADD COMMENT
Topic
Name
6+8 =