-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/20/2015 09:12 PM, Jonas Sicking wrote: > On Fri, Feb 20, 2015 at 8:11 AM, Julien Wajsberg > <jwajsb...@mozilla.com> wrote: >> Le 20/02/2015 04:25, Robert O'Callahan a écrit : >>> On Fri, Feb 20, 2015 at 4:02 PM, James Long >>> <longs...@gmail.com> wrote: >>> >>> Personally I think what we *really* need to be working on is >>> making all of the DOM APIs asynchronous. That's what Servo >>> needs anyway. That's a step in the right direction for #3, and >>> we can see much more we can get out of the main thread after >>> that. >>> >>> I don't see how making DOM APIs asynchronous really helps you >>> achieve #3. There are some specific cases where custom layouts >>> need to repeatedly measure content, that currently rely on APIs >>> that trigger multiple sequential synchronous reflows, which >>> would be better served by less synchronous APIs. We have >>> nebulous plans for addressing that (it's not as easy as "make >>> everything a Promise"). But those aren't the main problems >>> mobile Web apps face right now AFAIK. >> >> In Firefox OS development, this is part of the biggest issues we >> have for very specific tasks. > > To be clear, we're not talking about making the whole DOM async, > right? > > I.e. we're not talking about adding an async element.appendChild() > or an async element.innerHTML? > > What we're specifically talking about are async functions for > getting layout information? So async element.getComputedStyle() > and element.getClientRects()?
These are particular cases that have been suggested, yes. (I've heard suggestions for async innerHTML too, but I don't think that was in the context of Servo.) Either way, while some people have been dreaming about such APIs, we're not actually working on any, or planning to start working on them. HTH Ms2ger -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJU57l9AAoJEOXgvIL+s8n2jQMH/1e+/4FTpq/r/7qTJ5MEQ0mL T1MbR+oVBr6xDCX4hu72ZCarmEC992coPnuMC4Y8NI4gD91XpAZhToFraGifXC4Z zEJaqYfUSH8YRMIbwqmH49j1aEQjLW/q0XwHfsE3M7V4+7P7BaccQhotSQQz5Ubo +SGtPbqfTmQr4FeZhXGCOGJAU76tBAdoKr0NanDh6FvuiIz/vB+ZVUSStsK2gwYw FbIdXBPiJLlbW+VQjSz4NDXLrLIfzZ7jb5t43Ad0ljMeKltNSh3X6ad8Wv6DTExM RHx6xGojSYhEvwelfbMhsxI2zCmNrxHoJ2sBSmnG+2kr5BDaUP1c/jneD5zH/Vk= =EYaK -----END PGP SIGNATURE----- _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform