Page MenuHomePhabricator

Use Paint Timing API instead of deprecated chrome.loadTimes() where possible
Closed, ResolvedPublic

Description

[Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: Paint Timing. https://www.chromestatus.com/features/5637885046816768
[Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768

The Microsoft non-standard extension of Navigation Timing for msFirstPaint, and Chrome's implementation via chrome.loadTimes() have been standardised as part of a new Paint Timing API.

We already briefly experimented this as part of the Asia Sample code we had until recently, but we should switch our main code to use it as well where available.

Event Timeline

Krinkle renamed this task from Stop using deprecated method, switch to standard API to Use Paint Timing API instead of deprecated chrome.loadTimes() where possible.Feb 21 2018, 10:05 PM
Krinkle updated the task description. (Show Details)

Change 417986 had a related patch set uploaded (by Imarlier; owner: Imarlier):
[mediawiki/extensions/NavigationTiming@master] ext.NavigationTiming: use the Paint Timing API, if possible

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

Change 417986 merged by jenkins-bot:
[mediawiki/extensions/NavigationTiming@master] ext.NavigationTiming: use the Paint Timing API, if possible

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