BOOMR.plugins. PaintTiming


The PaintTiming plugin collects paint metrics exposed by the W3C Paint Timing specification.

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-paint in DOMHighResTimestamp
  • pt.fcp: first-contentful-paint in DOMHighResTimestamp

See:

Methods


getTimingFor(timingName)

Gets the PaintTiming timestamp for the specified name

Parameters:

Name Type Description
timingName string

PaintTiming name

Returns:

Type: DOMHighResTimestamp

Timestamp


init()

Initializes the plugin.

This plugin does not have any configuration.

Returns:

BOOMR.plugins.PaintTiming The PaintTiming plugin for chaining


is_complete()

Whether or not this plugin is complete

Returns:

Type: boolean

true if the plugin is complete


is_enabled()

Whether or not this plugin is enabled and PaintTiming is supported.

Returns:

Type: boolean

true if PaintTiming plugin is enabled and supported.


is_supported()

Whether or not PaintTiming is supported in this browser.

Returns:

Type: boolean

true if PaintTiming is supported.