W3C home > Mailing lists > Public > public-web-perf@w3.org > June 2011

Re: [RequestAnimationFrame] Integer identifiers: let's not make the same mistake again.

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 29 Jun 2011 09:37:33 +1200
To: James Robinson <jamesr@google.com>
Cc: David Bruant <david.bruant@labri.fr>, public-web-perf@w3.org, "Mark S. Miller" <erights@google.com>
Message-ID: <20110628213733.GA12400@wok.mcc.id.au>
James Robinson:
> I'm not sure I understand exactly what you mean here - script can only
> cancel timers that it set.  Could you expand a bit on what you mean by
> "granted the right to do so"?

And if script you don’t control is running on your page, it being able
to cancel your requestAnimationFrame calls is probably the least of your
worries.

> The reason for using integer identifiers is to remain close to
> setTimeout/setInteval, but I think an opaque identifier would work equally
> well.  I'm not sure what benefit it would give, however.

I agree, I don’t see it providing enough benefits to warrant changing.

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 28 June 2011 21:38:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 June 2011 21:38:05 GMT