W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: solving the CPU usage issue for non-visible pages

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 21 Oct 2009 12:44:56 +1300
Message-ID: <11e306600910201644r649b9bf3t76dd83762e26ef5f@mail.gmail.com>
To: "Ennals, Robert" <robert.ennals@intel.com>
Cc: "public-webapps@w3.org" <public-webapps@w3.org>
On Wed, Oct 21, 2009 at 11:59 AM, Ennals, Robert <robert.ennals@intel.com>wrote:

> Should we also consider the case where a web site wants to keep its
> interface up to date with some server state and is using up CPU time and
> network resource to do so?
>

You could abuse my proposal to do this, by periodically (as frequently as
you run script now) calling requestAnimationFrame and seeing if you actually
get a paint event. Maybe that's not an ideal solution, though.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Tuesday, 20 October 2009 23:45:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:34 GMT