Reputation: 1901
What is best and recommended way to track an Angular application performance? I can use many other available techniques/api's like performance.now to track and google analytics/application insight to send custom performance counters.
But my question is do we have something built-in inside Angular for this purpose or a recommend third party module/library that helps to track angular application performance?
Upvotes: 4
Views: 1497
Reputation: 261
I also recommend using the package perf-marks. It's an:
isomorphic, simple, and lightweight solution for User Timing API in Javascript - only 208B used in projects such as Jira, Confluence, and Bitbucket. Tree-shaking and entry points built-in.
Also, you can use it on your browser or NodeJS sides.
https://github.com/willmendesneto/perf-marks
Upvotes: 0
Reputation: 143
Sounds like you are looking for something like Perfume.js: https://zizzamia.github.io/perfume/#/angular/
It tracks things like First Contentful Paint and First Input Delay for user interaction.
Upvotes: 1