1document.addEventListener("DOMContentLoaded", function(event){
2 // your code here
3});
4
5Better than
6
7window.onload = function(){
8 // code goes here
9};
1document.addEventListener("DOMContentLoaded", function(event) {
2 //we ready baby
3});