js la différence entre load et DOMContentLoaded code example
Example: dom ready js
document.addEventListener("DOMContentLoaded", function() {
// code
});
document.addEventListener("DOMContentLoaded", function() {
// code
});