onedionys-web-performance-analyzer
v5.0.0
Published
One Dionys (Web Performance Analyzer) - Functions to analyze and monitor the performance of web applications, identifying and fixing weak points.
Downloads
4
Maintainers
Readme
💾 Requirements
Web Browser
- Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].Internet
- Because many use CDN and to make it easier to find solutions to all problems.
🎯 How To Use
Example Syntax
const { analyzePagePerformance } = require('web-performance-analyzer');
(async () => {
const url = 'https://example.com';
const performanceMetrics = await analyzePagePerformance(url);
console.log(performanceMetrics);
})();
Explanation
- The analyzePagePerformance function takes a URL as input and returns various performance metrics of the webpage. It uses Puppeteer to launch a headless Chrome browser and measures performance metrics using the Performance API provided by the browser.
Return Value
loadTime
: The total time taken for the page to load (in milliseconds).- You can add more metrics based on your requirements.
📆 Release Date
- v1.0.0 : 17 March 2024
- v1.0.1 : 18 March 2024
- v5.0.0 : 31 March 2024
🧑 Author
- Facebook : Oned Ionys
- Instagram : @onedionys
- Twitter : @onedionys
- LinkedIn : @onedionys
📝 License
- Copyright © 2024 One Dionys
- One Dionys - Web Performance Analyzer is an open source project licensed under the MIT license
☕️ Suppport & Donation
Love One Dionys - Web Performance Analyzer? Support this project by donating or sharing with others in need.
Made with ❤️ One Dionys