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');
});
Source by learn.jquery.com #
 
PREVIOUS NEXT
Tagged: #jquery #document #ready
ADD COMMENT
Topic
Name
6+1 =