document.ready()

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

Also in JavaScript: