[whatwg] HTML Cookie API
Diogo Resende
dresende at thinkdigital.pt
Thu Feb 25 06:54:23 PST 2010
On Wed, 2010-02-24 at 11:21 -0800, Darin Fisher wrote:
> For reference, reading document.cookie has measurable performance cost
> in Chromium since the cookie jar lives in a process separate from the
> process running JavaScript. We could have minimized this cost by
> caching the cookies locally, but then there are cache coherency
> issues.
>
>
> I think the cookie APIs should have been asynchronous from the start.
> Whenever an API is backed by I/O, asynchronous should be the rule.
>
>
> -Darin
What about something like:
document.pushCookies(function () {
// cookies have been pushed to the js process
var x = document.getCookie("x");
// whatever...
});
More information about the whatwg
mailing list