[webkit-dev] Request for position on isInputPending

Ryosuke Niwa rniwa at webkit.org
Wed Sep 23 00:37:17 PDT 2020


On Fri, Sep 18, 2020 at 11:56 AM Andrew Comminos <acomminos at fb.com> wrote:

> We're looking to gather a position from WebKit folks on isInputPending,
> an API to query for the presence of pending input events. It allows
> sites to reduce event latency by yielding during longer computational
> tasks, without sacrificing throughput otherwise.
>
> Explainer: https://github.com/WICG/is-input-pending/
>
> Spec: https://wicg.github.io/is-input-pending/
>

As we have discussed in other avenues, we're skeptical that this API is
needed given native apps on iOS and macOS don't need such an API and many
iOS apps are considered as a pinnacle of good performance.

Also, there are many other things an app needs to yield to respond /
process. There could be another frame pending to be rendered, or a network
request for which a response is ready. There are no ways to inspect whether
such a task is pending or not, and we don't want to end up with isXPending
for every X we can think of in the future.

Furthermore, a well performing app should be yielding at least every frame,
and in that case, there is no need for isInputPending since AppKit will
only send at most one NSEvent of a given type per frame by design.

As such, Apple's WebKit team does not support the current proposal.

- R. Niwa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20200923/2cc2e543/attachment.htm>


More information about the webkit-dev mailing list