views:

34

answers:

1

I have noticed this in Chrome . Anyone has a idea about what's wrong or a workaround ?

+1  A: 

When Chrome goes in the background it freezes JavaScript execution. I noticed this on drawings when it's minimized to the Dock in OS X.


There is no workaround as far as I know. If you tell us what you are trying to do there might be something that can be done.

Josh K
I try to poll a server for new data ( new updates in the DB ) fetched every 10s with an ajax call. I don't know how gmail actually succeed to still making working when Windows wakes up.
Dave
@Dave: First off polling is *horrible* and should be a last resort. Try [WebSockets](http://joshuakehn.com/blog/view/2/WebSocket-Tutorial-with-Node-js). Also I would guess that Google puts some sort of check code that will recreate the interval.
Josh K