Does this
window.addEventListener("load", function(event) {
console.log("DOM including images loaded?")
});
fire after only the DOM has been loaded or when everything, including images have been loaded?
Is this what I'm looking for: https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event ?
If so, is this
window.addEventListener('load', (event) => {
});
or this
window.onload = (event) => {
};
the better practise?
Thx!