perfume.js
Advanced tools
Changelog
8.1.6 (2022-12-30)
visibility.isHidden
check when reporting metrics. Apparently, without this check, we end up over-reporting metrics that risk being inaccurate because the page suddenly becomes hidden.Currently, the only initial metrics that will be reported after visibility changes are CLS and INP.
Changelog
8.0.0 (2022-11-6)
As now we are a superset of Web Vitals, here a quick overview on what changed:
analyticsTracker
options will use the word attribution
for all custom data of each metric, and vitalsScore
will change to rating
.new Perfume({
...
analyticsTracker: ({ attribution, metricName, data, navigatorInformation, rating }) => {
// Report the metric with your favorite analytics tool
}
});
FID
, LPC
, etc...