Feeds

Google urges background tab websites to throttle themselves

Here, use this API

Remote control for virtualized desktops

Velocity Google has urged website developers to use Chrome's experimental Page Visibility API to reduce their sites' activities when they're not actually being viewed by browser users.

Now included with the developer version of Chrome – and due for arrival in the beta version next week – the PageVisability API allows websites to determine when they're actually being viewed by users – and when they're just sitting in the background. The API can tell you when a site is sitting inside a background tab, but also when a site has been pre-rendered by Chrome's new Instant Pages tool.

Just announced this week, Instant Pages attempts to predict what Google search result you're going to click on and then pre-renders the page before you actually click. Of couse, there will be cases where Google's prediction is incorrect, and the Page Visability API allows webmasters to identify such false traffic.

But webmasters can also use the API to determine when a site is sitting in a background tab – Instant Pages pre-renders sites in what is essentially a hidden tab – and on Thursday, at O'Reilly's Velocity conference in Santa Clara, California, Google engineers Arvind Jain, Sreeram Ramachandran, and Mike Belshe asked developers to use the API as a means of scaling back their site's operations when they're relegated to the background.

"We all build our webpages on our own, and we try to take the resources that we need to run our webpages," Belshe said. "And that's what we should be doing. When we're in the background, if we can recognize that other pages are running too and knock our own stuff down, that's really the way to go".

Mike Belshe

Mike Belshe

Google has proposed the API to the W3C as a standard, and it hopes that other browser vendors will adopt it as well. After Belshe's talk, Mozilla open source evangelist Chris Blizzard told us that he and Mozilla are still mulling the ramifications of the API.

With Chrome, Belshe said, Google already worked to downgrade activity in background tab. He called this the "real" reason Chrome is so fast. "For things that aren't running [in the foreground tab], we knock them to a lower priority. Not only does that make sure that Chrome runs better, it makes it so that Outlook or Word or whatever else runs better," he said.

But he added that website owners can improve performance even more by "knocking down" their own activity when their sites are running in the background. "If you've got a webpage that's doing stuff constantly, you tap into the Page Visibility API, and you slow it down. You don't have to stop. Just slow it down."

Belshe ran a benchmark showing that Chrome is significantly faster than Microsoft Internet Explorer when heavy JavaScript is running in multiple tabs, saying this was the result of Google's work to reduce activity in background tabs. Blizzard told us that Mozilla is treating background sites in similar fashion with Firefox 5, due for release next week. ®

Top 5 reasons to deploy VMware with Tegile

More from The Register

next story
Download alert: Nearly ALL top 100 Android, iOS paid apps hacked
Attack of the Clones? Yeah, but much, much scarier – report
NSA SOURCE CODE LEAK: Information slurp tools to appear online
Now you can run your own intelligence agency
Microsoft: Your Linux Docker containers are now OURS to command
New tool lets admins wrangle Linux apps from Windows
Microsoft adds video offering to Office 365. Oh NOES, you'll need Adobe Flash
Lovely presentations... but not on your Flash-hating mobe
You stupid BRICK! PCs running Avast AV can't handle Windows fixes
Fix issued, fingers pointed, forums in flames
HTML5 vs native: Harry Coder and the mudblood mobile app princes
Developers just want their ideas to generate money
prev story

Whitepapers

Seattle children’s accelerates Citrix login times by 500% with cross-tier insight
Seattle Children’s is a leading research hospital with a large and growing Citrix XenDesktop deployment. See how they used ExtraHop to accelerate launch times.
5 critical considerations for enterprise cloud backup
Key considerations when evaluating cloud backup solutions to ensure adequate protection security and availability of enterprise data.
Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Beginner's guide to SSL certificates
De-mystify the technology involved and give you the information you need to make the best decision when considering your online security options.