Is it necessary to enclose code in the following:
window.addEventListener('load', () => {})
If your scripts are already loaded at the end of the body
tag?
Wouldn't this ensure that the DOM has been fully loaded, rendering a load
event listener redundant?