Answer the question
In order to leave comments, you need to log in
Why doesn't the load event fire on window?
Hello Connoisseurs! The question is why the load event in window. An example is here https://jsfiddle.net/Navaho/4krntxwj/1/ , lines 6 and 7 (click/scroll events) work like clockwork, but the load event freezes something! Did the same only on pure XMLHttpRequest all events (click & load & scroll) work like clockwork.
Answer the question
In order to leave comments, you need to log in
The "load" event doesn't fire because this code is called after the page has loaded.
window.addEventListener('load', event => f(event))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question