javascript document load
snippet in javascript

dom ready js

user3603

document.addEventListener("DOMContentLoaded", function() {
  // code
});

javascript document load

user7241

window.addEventListener("load", function(event) {
    console.log("Tutte le risorse hanno terminato il caricamento!");
});

document load javascript

user2655

window.onload = function() {
  // Code here
}

js document onload

user5392

//use
window.onload=()=>{};

window onload

user1329

function load(argument) {
	// body...
}
window.onload = load;