SpeedCurve-Metrics / lux.js

Web performance testing (real user monitoring) by SpeedCurve
https://speedcurve.com/features/lux/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Don't clear beacon flags on bfcache restore #45

Closed josephwynn-sc closed 9 months ago

josephwynn-sc commented 9 months ago

@crockercliff found some data with significant overlap between bfcache restores and soft navs. This helped uncover a bug where we calling _init() on bfcache restore is clearing all beacon flags and setting the InitCalled flag which we use to determine soft navs. This PR allows the bfcache restore code to tell init() not to clear flags.

image