Intent to Extend Origin Trial: EventTiming

64 views
Skip to first unread message

Annie Sullivan

unread,
Apr 22, 2019, 1:21:01 PM4/22/19
to blink-dev, Nicolás Peña, Tim Dresser, Tom McKee

Contact emails

n...@chromium.org, tdre...@chromium.org, sull...@chromium.org


Spec

Link to spec: https://wicg.github.io/event-timing/


Summary

Monitoring event latency today requires an event listener. This precludes measuring event latency early in page load, and adds unnecessary performance overhead. The Event Timing API gives developers insight into the latency of a subset of events triggered by user interaction. In order to capture user pain caused by slow initial interactions, the event timing API includes First Input Delay (FID).


Previous trial results are described at https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/mGkwLYpHOxM/T7pEAGVJCAAJ


Link to “Intent to Implement” blink-dev discussion

https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/event$20timing%7Csort:date/blink-dev/QNE6TVQve-0/vITXx1N5BQAJ


Goals for experimentation

We’d like feedback from a new customer which expressed interest in the OriginTrial. Previous Intent to Experiment:
https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/Intent$20to$20Extend$20Origin$20Trial$3A$20EventTiming%7Csort:date/blink-dev/sJ4lxamz2V0/9aGztXjfDgAJ

 

Experimental timeline

Current experiment began in M68 and is set to end at the end of M74. We’d like to extend the experiment until the end of M75.


Any risks when the experiment finishes?

No - this is a performance analytics API.


Reason this experiment is being extended

There are two main reasons:

  • Allowing the new customer to try out the API, and potentially provide feedback.

  • We were planning to ship on M74 but were unable to do so due to https://bugs.chromium.org/p/chromium/issues/detail?id=914500. We continue to actively work on this issue but it requires experimentation and did not launch in M74. We don’t want a long period of time during which this API is not available because it is exposed as an experimental metric in CrUX.


Ongoing technical constraints

None.


Debuggability

When enabled, FID is exposed via javascript either via PerformanceObserver (requires early registration) or via the performance timeline if it occurs before onload:

// Register observer during onload.

const performanceObserver = new PerformanceObserver …

performanceObserver.observe({entryTypes:['firstInput']});

// Or get it from the buffer.

performance.getEntriesByType(‘firstInput’);


Will this feature be supported on all five Blink platforms supported by Origin Trials (Windows, Mac, Linux, Chrome OS, and Android)?

Yes.


Link to entry on the feature dashboard

https://www.chromestatus.com/feature/5167290693713920

Annie Sullivan

unread,
Apr 26, 2019, 9:06:15 AM4/26/19
to blink-dev, Nicolás Peña, Tim Dresser, Tom McKee
ping?

Daniel Bratell

unread,
Apr 26, 2019, 9:45:36 AM4/26/19
to blink-dev, Nicolás Peña, Tim Dresser, Tom McKee, Annie Sullivan
Unfortunately we ran out of time during the api owner meeting last night, and I try to stay out of Origin Trial decisions since so much of them depend on Google's internal systems, but I note that this is a further extension of something that has already been extended. The longer an origin trial runs, the higher risk that sites burn in an dependency on the feature and that it becomes impossible to do fixes before the final shipping.

If you can address that risk, that would make it easier (for someone else) to figure out how to proceed.

/Daniel
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJB_qskf392BkC21-dfapjg5n_JvBS%2Bb1ppWzv3Lo%2B9%3DaSjsOg%40mail.gmail.com.



--
/* Opera Software, Linköping, Sweden: CET (UTC+1) */

Annie Sullivan

unread,
Apr 30, 2019, 10:31:51 AM4/30/19
to Daniel Bratell, blink-dev, Nicolás Peña, Tim Dresser, Tom McKee
Thanks, Daniel!

We plan to ship FID in M76. We had wanted to ship in M75, but weren't able to resolve a bug fast enough to get experimental data back in time.

We don't think that burn in is a big concern because the origin trial is being used for data gathering only, and we'll be launching in one more milestone. We'd like to keep it available so that people consuming the data in the Chrome User Experience report can try out the API as well.

-Annie

Chris Harrelson

unread,
May 2, 2019, 10:37:23 AM5/2/19
to Annie Sullivan, Daniel Bratell, blink-dev, Nicolás Peña, Tim Dresser, Tom McKee
Based on that explanation, LGTM to extend to M75.

Reply all
Reply to author
Forward
0 new messages