It doesn\'t give an error, and I put a console.log(\'loaded userscript wifi-autologin\')
, the console.log
works, but the intended effect of the doc
According to HTML living standard specification, the load
event is
Fired at the Window when the document has finished loading; fired at an element containing a resource (e.g. img, embed) when its resource has finished loading
I.e. load
event is not fired on document
object.
Credit: Why does document.addEventListener(‘load’, handler) not work?