HTML main loop stops completely without focus

Hi,

If I am correct, Browser.window.requestAnimationFrame is used for the main loop in the html target? When the browser tab loses focus, the main loop will stop working completely, at least in chrome. I need the main loop keep running in order to get live updates from the server. Is there a change to have a “backup” with setTimeOut for example?

We stop dispatching Event.ENTER_FRAME and render events, but I believe (if the browser allows background activity) JavaScript should still be able to execute. Have you tried using a Haxe Timer?

Sounds good, i will give it a try.

Thx!