-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event Timing #420
Comments
From the previous discussion, it seems like the previous concerns were potential duplication/overlap with Long Tasks API, and imprecision of some definitions. Adding appropriate concern labels. (Perhaps those concerns are now addressed). |
It looks like @rniwa ’s issue regarding imprecision may be addressed, I will let him comment whether there are still interop concerns w3c/event-timing#91 |
The imprecise definition issue has been addressed but I don't think my concern for assistive technology interaction (some AT initiated user interaction wouldn't trigger pointerdown/up, mousedown/up, or keydown/up events) and single page app has been addressed. It's also questionable to assume that the very first user interaction is the only thing users care about. A more clear model would be to always report input delays regardless of whether it was first or not. That'll make this API more useful with single page apps as well. Also, the precision limit of 8ms should probably be gated on 120Hz rAF. In browsing context in which rAF happens at 60Hz, we should probably use 16ms precision instead to avoid exposing new information. |
Thanks!!
Can you share more details or pointers to what events they do trigger? I don't necessarily have a correct mental model for such AT interactions.
Single page app navigations are handled by https://github.com/WICG/soft-navigations
I believe you're referring to the "first-input" entries. I don't think the specification assumes it's the only thing users care about, but it does split it out from other "event"-type entries.
As I mentioned above, the main difference between “first-input” and “event” entries is that “event” entries are subject to a duration threshold. An initial concern with removing the duration threshold was that it may result in too many entries being emitted, where most of them are not of interest. If you think that we should reconsider this, it’s definitely something we could discuss.
It should be noted that there’s a in-flight plan to add a rAF-end-aligned But, if there’s demand for it, I'm sure the spec language can be modified to allow for coarser UA-defined precision for |
WebKittens
@achristensen07, @rniwa
Title of the proposal
Event Timing
URL to the spec
https://www.w3.org/TR/event-timing/
URL to the spec's repository
https://github.com/w3c/event-timing
Issue Tracker URL
No response
Explainer URL
No response
TAG Design Review URL
w3ctag/design-reviews#324
Mozilla standards-positions issue URL
mozilla/standards-positions#283
WebKit Bugzilla URL
No response
Radar URL
No response
Description
This was previously discussed on the webkit-dev mailing list. I think it's worthwhile to revive that discussion, given that since then the feature:
The text was updated successfully, but these errors were encountered: