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.
With Perfume.js, you can collect these metrics to develop a deeper understanding of how customers around the world perceive web performance for your application.
Use your favorite analytics tool to visualize the data from country to country. Take a look at this example comparing FCP for coinbase.com in the United States, Italy, Indonesia, and Nigeria.
// 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.