Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
3 contributors

Users who have contributed to this file

@ericandrewlewis @cramforce @adelinamart
42 lines (35 sloc) 2.99 KB

Tick Events

When implementing a viewer one can use the tick events for performance tracking.

We use very short string names as tick labels, so the table below further describes these labels. Every start label has an assumed e_label for its "end" counterpart label. As an example if we executed perf.tick('label') we assume we have a counterpart perf.tick('e_label').

Name id Description
Install Styles is Set when the styles are installed.
End Install Styles e_is Set when the styles are done installing.
Window load event ol Window load event fired.
First viewport ready pc Fires when non-ad resources above the fold fired their load event measured from the time the user clicks (So takes pre-rendering into account)
Make Body Visible mbv Make Body Visible Executes.
On First Visible ofv The first time the page has been turned visible.
First paint time fp The time on the first non-blank paint of the page.
First contentful paint time fcp First paint with content. See https://github.com/WICG/paint-timing
First input delay fid Millisecond delay in handling the first user input on the page. See https://github.com/WICG/event-timing
First input delay, polyfill value fid-polyfill Millisecond delay in handling the first user input on the page, reported by a polyfill
Layout Jank, first exit lj The aggregate jank score when the user leaves the page (navigation, tab switching, dismissing application) for the first time. See https://gist.github.com/skobes/2f296da1b0a88cc785a4bf10a42bca07
Layout Jank, second exit lj-2 The aggregate jank score when the user leaves the page (navigation, tab switching, dismissing application) for the second time.
Cumulative Layout Shift, first exit cls The aggregate layout shift score when the user leaves the page (navigation, tab switching, dismissing application) for the first time. See https://web.dev/layout-instability-api
Cumulative Layout Shift, second exit cls-2 The aggregate layout shift score when the user leaves the page (navigation, tab switching, dismissing application) for the second time.
You can’t perform that action at this time.