Page Speed is a feature, and to deliver it we need to understand the many factors and fundamental limitations that are at play. If we can measure it, we can improve it.
Star Follow @zizzamiaPerfume is a tiny, web performance monitoring library that reports field data back to your favorite analytics tool.
Perfume leverages the latest Performance APIs to collect field data that allows us to understand what real-world users are actually experiencing.
At Coinbase, we use Perfume.js to capture a high-level scoring system that is clear, trusted, and easy to understand.
Summarizing the performance health of an application into a reliable and consistent score helps increase urgency and directs company attention and resources towards addressing each performance opportunity.
Perfume leverages the Web Vitals library to collect all the standardized performance metrics. It explores new metrics like Navigation Total Blocking Time and dimensions like Low-End Devices, Service Worker status to understand your data better.
So don't worry, Perfume.js is a superset of Web Vitals, a bit like Typescript is a superset of Javascript.
// Install npm install perfume.js --save // Importing library // Import the generated bundle to use the whole library generated: import Perfume from 'perfume.js'; // Universal Module Definition: import Perfume from 'node_modules/perfume.js/perfume.umd.js'; |
Default options provided to Perfume.js constructor.
const options = { resourceTiming: false, elementTiming: false, analyticsTracker: options => {}, maxMeasureTime: 30000, }; |
Code and documentation copyright 2022 Leonardo Zizzamia. Code released under the MIT license. Docs released under Creative Commons.