22 February 2022
This is considered a major lux.js release and may contain some breaking changes.
LUX.beaconModehas been removed.
LUX.getDebug()now returns a different format.
- The pathname of the current page is now tracked.
LUX.errorTracking = false.
LUX.maxErrors = <number>.
- The maximum measure time can be controlled by setting
LUX.maxMeasureTime = <number>. After this time, data collection will stop and the beacon will automatically be sent. This can be useful to prevent dynamic content like adverts from affecting your CLS and LCP scores late in the page load. The time is specified in milliseconds, and the default value is
unloadhandler is no longer used to track abandoned pages, except in legacy web browsers. The
pagehideevents are used instead.
- Developers who implement lux.js into a SPA by using
LUX.auto = falsecan now opt-in to abandoned page tracking by setting
LUX.sendBeaconOnPageHidden = true.
LUX.init()on the initial page load will no longer lose previously-captured data.