Re: [PageVisibility] Are visibility change events synchronous?

On 10/5/11 7:14 PM, Jatinder Mann wrote:
> I agree that we should always change the properties (document.hidden and document.visibilityState) prior to firing the event. However, I don't know if there is value in ensuring those two things happen synchronously.

If not, then code that checks the properties and then listens for an 
event and expects that the event really means the properties changed 
from when they were checked will get pretty confused.  It seems simpler 
to not allow that sort of thing to start with.

-Boris

Received on Thursday, 6 October 2011 03:40:14 UTC