The PaintTiming plugin collects paint metrics exposed by the W3C Paint Timing and Largest Contentful Paint specifications.
For information on how to include this plugin, see the Building tutorial.
Beacon Parameters
All beacon parameters are prefixed with pt..
This plugin adds the following parameters to the beacon:
pt.fp:first-paintinDOMHighResTimestamppt.fcp:first-contentful-paintinDOMHighResTimestamppt.lcp:largest-contentful-paintinDOMHighResTimestamppt.hid: The document was loaded hidden (at some point), so FP and FCP are user-driven events, and thus won't be added to the beacon.
Methods
-
getTimingFor(timingName)
-
Gets the PaintTiming timestamp for the specified name
Parameters:
Name Type Description timingNamestring PaintTiming name
Returns:
Type: DOMHighResTimestamp
Timestamp
-
init()
-
Initializes the plugin.
This plugin does not have any configuration.
Returns:
BOOMR.plugins.PaintTimingThe PaintTiming plugin for chaining -
is_complete()
-
Whether or not this plugin is complete
Returns:
Type: boolean
trueif the plugin is complete -
is_enabled()
-
Whether or not this plugin is enabled and PaintTiming is supported.
Returns:
Type: boolean
trueif PaintTiming plugin is enabled and supported. -
is_supported()
-
Whether or not PaintTiming is supported in this browser.
Returns:
Type: boolean
trueif PaintTiming is supported.