I'm running an Angular app that is showing a very low score in PageSpeed Insight for mobile (41 for mobile, 86 for desktop).
I am attaching the screenshot of the errors here.
I could really use some help sorting out these problems. Any advice you've got would be awesome!
Some details about the app
- Angular 17.1
- I lazy-loaded all the routes and used only standalone component
- The app does have some third-party libraries example: Angular Material, Ngrx, Chartjs, ...
Low mobile score - 41

Reduce JavaScript execution time 1.5 s

Minimize main-thread work 2.4 s

Largest Contentful Paint element 5,640 ms

Are you running your pagespeed indexing on a production build? If you are running this whilst in development mode your application will not have been optimised and you will see misleading results.
If you are testing locally without deploying your build to a web server then for a simple test use
ng serve --configuration=productionand see if you achieve better performance results.