document jquery

JavaScript
document.addEventListener("DOMContentLoaded", function() {
  // code
});$( document ).ready(function() {
    console.log( "ready!" );
});
$(document).ready(function () {
  // Function code here.
});document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});$( document ).ready(function() {
    console.log( "ready!" );
});$(function(){
  // equal to $( document ).ready(function() {
});
  
Source

Also in JavaScript: