News for hackers. Stuff that matters.
Re:Instant pages with HTML5 Visibility API & Page Pre-Rendering by sbirch on Saturday June 25, 2011 @02:55PM (#2696278)
"With the visibility API, you can gracefully pause or degrade the timer to a much longer poll when the tab is in the background."

Note that this is already enforced for setInterval in some browsers -- I think Chrome changes the minimum interval to 1000ms from 4ms when the tab is in the background.

Re:Instant pages with HTML5 Visibility API & Page Pre-Rendering by igrigorik on Saturday June 25, 2011 @03:01PM (#2696292)
Ah, interesting -- is this documented anywhere? I did see mentions of Chrome downgrading background tabs, but did not find any specific numbers.
Re:Instant pages with HTML5 Visibility API & Page Pre-Rendering by paulirish on Saturday June 25, 2011 @04:46PM (#2696524)
I mentioned it quickly on twitter: https://twitter.com/#!/ChromiumDev/status/76634744607096832

And updated the MDC docs on it: https://developer.mozilla.org/en/DOM/window.setTimeout#Minim...

I'll get it added to www.chromestatus.com now.

Re:Instant pages with HTML5 Visibility API & Page Pre-Rendering by shazow on Saturday June 25, 2011 @03:23PM (#2696339)
Here's the corresponding bit for Mozilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=633421

I definitely experienced the same in Chromium.

Once upon a time, I also experienced similar timing weirdness on inactive tabs with .gif animations for some version of Chromium (tab out, wait a few seconds, tab back and suddenly the animation is superfast for a few seconds) but I can't reproduce it with modern versions.

Update: Here's the Chromium one: http://codereview.chromium.org/6577021

Re:Instant pages with HTML5 Visibility API & Page Pre-Rendering by ams6110 on Saturday June 25, 2011 @08:25PM (#2697038)
How about just making pages without a ton of crap on them?
Re:Instant pages with HTML5 Visibility API & Page Pre-Rendering by repos on Saturday June 25, 2011 @05:27PM (#2696624)
What will be the impact of this on mobile web apps? I'm assuming though that is still a rather long way off.
Re:Instant pages with HTML5 Visibility API & Page Pre-Rendering by mmahemoff on Saturday June 25, 2011 @06:25PM (#2696758)
When it lands on mobiles (not really if, as past trends indicate it's just a matter of time with HTML5 standards), it will certainly be a good thing for optimising battery consumption in a standard way.