tex
0
Q:

document ready without jquery

// A $( document ).ready() block.
$( document ).ready(function() {
    console.log( "ready!" );
});
1
document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});
31
document.addEventListener("DOMContentLoaded", function(event) { 
  //do work
});
2
$(function() {
  // Handler for .ready() called.
});
3

New to Communities?

Join the community