Our web application is written in Angular 9 having pages that have a combination of Angular as well as .net core views. The users have been reporting slowness, which I was finally able to reproduce on our server. The weird part is, it's completely random what's causing the lag. Sometimes it's a jpg download, sometimes its a javascript file download, other times its an API request.
This image shows just one page, where one request has a 14.51s execution time. That particular request usually only takes milliseconds to complete. This happens very sporadically and it's always different resources, as mentioned above.
We have App Dynamics installed, and we do not see these requests in app dynamics, which is leading me to believe it's not code related. We do have a lot of API requests happening asynchronously.
We're stumped at this point and looking for any suggestions on what to try. If more information is needed, I can get the answers. Could this be something server or network related?