document.addEventListener("DOMContentLoaded", function() { // code });
// jQuery document ready $(document).ready(function() { });
// A $( document ).ready() block. $( document ).ready(function() { console.log( "ready!" ); });
$( document ).ready(function() { console.log( "ready!" ); });
// A jQuery( document ).ready() block. jQuery( document ).ready(function() { console.log( "ready!" ); });
document.addEventListener("DOMContentLoaded", function(event) { //we ready baby });
$(function(){ // equal to $( document ).ready(function() { });
$(document).ready(function(){ $("button").click(function(){ $("p").slideToggle(); }); });