Thursday, April 19, 2012

Taras’ Blog » Blog Archive » Web 2.0: A Collection of SetTimeouts

Taras’ Blog » Blog Archive » Web 2.0: A Collection of SetTimeouts: "What should well-behaved web apps do?

You can detect when your tab becomes inactive via window.onblur, then throttle or disable your page activity. I know using focus is suboptional for this. There is also a vendor-prefixed visibility api (thanks!)."

'via Blog this'