Page MenuHomePhabricator

Chrome 77 new metrics
Closed, ResolvedPublic

Description

In Chrome 77 Performance Observer introduces the "buffered" version, meaning we can instantiate the observer late in the page and still get the metrics. This works for Element Timings and LCP and LayoutShift (but not for Long tasks).

Layout Shift needs config in Chrome to work, so we will need to wait with that until it is released for real, but Element and LCP is something we can use.

We need to discuss what to use and how. I've tried them out (Element timings reported really close to the video metrics when we tried it on the Russian Wiki). Should we use LCP? When I tested it on the Obama page, the largest paint was a paragraph. Element timings is good because we can mark exactly which element to measure.

LCP is more complicated since we can measure different things on different pages (whatever LCP pickup as the largest paint). When I tested its hard to just get the render metric, you need to track the reported URL (if it is an image), the id or at least the element type. But if you only get the type, how do you know what we are measuring?

Event Timeline

Gilles triaged this task as Medium priority.
Gilles moved this task from Inbox, needs triage to Doing (old) on the Performance-Team board.

Element Timing indeed seems ready, during the origin trial it was only working for images, they've added text elements over the summer. We can therefore measure time-to-first-paragraph for example, in addition to time-to-first-article-image (which is what we measured in the origin trial). There might be syntax changes to apply for the image element timing set up in the trial to still work in the final version.

I agree that Element Timing is more useful than LCP.

Looking at the other Chrome 77 updates https://www.chromestatus.com/features#milestone%3D77 I don't see anything else that requires our attention. Lite mode is getting lazy-loaded images. First Input Timing, a subset of Event Timing, is launching. If they take a long time to launch Event Timing, we might consider that. Since we identified the biggest offenders in the origin trial already, this doesn't seem to be very urgent, imho.