ready function javascript

JavaScript
// jQuery document ready
$(document).ready(function() {
    
});document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});
Source

Also in JavaScript: