Tracks Back-Forward Cache (BFCache) Navigations.
This plugin will send a "BFCache" beacon every time a BFCache navigation occurs, and will include the "Not Restored Reasons" when a Back-Forward navigation wasn't a BFCache navigation.
Beacon Parameters
This plugin adds the following parameters to the beacon:
http.initiator=bfcache
: Designates this beacon as a BFCache navigationrt.start=manual
: Since this is a non-Page Load beacont_done
: (Page Load Time) Set to the duration of thepageshow
eventt_page
: (Front End Time) Matchest_done
and is set to the duration of thepageshow
eventt_resp
: (Back End Time) Set to 0rt.tstart
: (Event start) Set to the timestamp of thepageshow
eventrt.end
: (Event end) Set to the timestamp when thepageshow
event firednt_nav_type
: Set to Back-Forward Navigation (2
)pt.fcp
: First Contentful Paint (from tworequestAnimationFrame
s)pt.lcp
: Largest Contentful Paint (from tworequestAnimationFrame
s)bfc.nrr
: BFCache "Not Restored Reasons" (list of strings) if BFCache wasn't possible (for regular Back-Forward navigations)
Methods
-
init(config)
-
Initializes the plugin.
Parameters:
Name Type Description config
object Configuration
Properties
Name Type Description minimumDwellTime
number Minimum dwell time before a beacon is sent
Returns:
BOOMR.plugins.BFCache
The BFCache plugin for chaining -
is_complete()
-
This plugin is always complete (ready to send a beacon)
Returns:
Type: boolean
true
-
notRestoredReasons()
-
Gets the page's Not Restored Reasons (if any), joined by a comma
Returns:
Type: string
String of Not Restored Reasons