visibilitychange event is not triggered when switching program/window with ALT+TAB or clicking in taskbar
问题 Basically, the problem is with the behaviour of the event "visibilitychange". It's triggered: - When I switch to a different tab inside the browser window. When I click in minimize / restore buttons for the browser window. (this is ok) It's not triggered: - When I switch to a different window/program using ALT+TAB. When I switch to a different window/program clicking on taskbar. (this SHOULD trigger, because, just like when minimizing, the window's visibility may change) W3 Page Visibility