JS: Are `load` events needed if you place your scripts at the end of the body?

后端 未结 0 1590
长发绾君心
长发绾君心 2020-12-29 05:18

I was wondering if it\'s redundant to wrap code in:

window.addEventListener(\'load\', () => {})

if you already have your scripts loaded at

相关标签:
回答
  • 消灭零回复
提交回复
热议问题