Page MenuHomePhabricator

Measure approximate top paragraph timing
Closed, InvalidPublic

Description

Using the technique described here in example 5: https://speedcurve.com/blog/user-timing-and-custom-metrics/

While we know it is a flawed hack, it might still have decent correlation to user perception, which we'll be able to verify with the survey.

Event Timeline

Gilles triaged this task as Medium priority.Jun 22 2018, 4:51 PM

Change 442102 had a related patch set uploaded (by Gilles; owner: Gilles):
[mediawiki/extensions/NavigationTiming@master] Insert performance mark after first paragraph of article

https://gerrit.wikimedia.org/r/442102

Change 442102 abandoned by Gilles:
Insert performance mark after first paragraph of article

Reason:
Found a clearer explanation here: https://hacks.mozilla.org/2017/09/building-the-dom-faster-speculative-parsing-async-defer-and-preload/

JS execution is blocked on the CSSOM being available - in case JS needs to access styles - and JS execution is parser-blocking. I assumed that browsers were smarter than they are and would parse the JS to find out whether it needs the CSSOM, but that doesn't appear to be the case.

Given how DOM-heavy our pages are, this seems indeed like a fool's errand and the measurement would impact the performance profile significantly.

https://gerrit.wikimedia.org/r/442102

The hack described by Steve Souders is actually detrimental to performance, which defeats the purpose of measuring anything with it. We'll just have to wait until there's a proper API available to measure time-to-text.

Vvjjkkii renamed this task from Measure approximate top paragraph timing to 4paaaaaaaa.Jul 1 2018, 1:03 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii removed Gilles as the assignee of this task.
Vvjjkkii raised the priority of this task from Medium to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed subscribers: gerritbot, Aklapper.
Lofhi renamed this task from 4paaaaaaaa to Measure approximate top paragraph timing.Jul 1 2018, 6:43 AM
Lofhi closed this task as Invalid.
Lofhi assigned this task to Gilles.
Lofhi lowered the priority of this task from High to Medium.
Lofhi updated the task description. (Show Details)
Lofhi added subscribers: gerritbot, Aklapper.