codingtcher.com
Theme Night
Home
Login

jquery document ready

Home » Tutorial Post » 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');
});

Related Post