loadEvent not firing?
AntouanK opened this issue · 1 comments
AntouanK commented
Investigate a case where loadEvent is not firing although the page seems completely functional.
AntouanK commented
Some times the parser that listens to the "load" event, misses it because it has already fired in the page.
( obvious reason is that the websocket connection is slower that the load event of the page )
Solution:
After installing the parser listening to the socket messages, also check the "readyState" of the document, to resolve the load event manually if needed.
Those "checks" will be moved to a separate file to maintain it easier.
Same for "socket preparation" code.