I have .NET Core MVC
project with Vue.js
framework which I got to maintain.
I ran into an issue which is time to full load app when debugging locally in visual studio (via IIS Express).
There is several request (to my API controller) for JSON data that takes about 30-40s
TTFB which makes full load in about a 1 minute.
But when I ran the single request alone, it takes only about 4s
to return data.
Even a small 7KB png logo take 17s
TTFB, but with the same request alone it takes only 4.5s
.
I tried all possible solutions I found on Google, MSDN and SO... Visual Studio options shenanigans, PerfView analysis, Excluding and even hiding "node_modules" file from VS, but nothing seems to improve it even a little.
I have also my own training/test Vue.js
(little bit less complex) website on the same machine and there is no problem and TTFB is under 1s
.
VS Request:
Request Alone: