1// A $( document ).ready() block.
2$( document ).ready(function() {
3 console.log( "ready!" );
4});
1// A jQuery( document ).ready() block.
2jQuery( document ).ready(function() {
3 console.log( "ready!" );
4});
1document.addEventListener("DOMContentLoaded", function(event) {
2 //we ready baby
3});