ASP.NET MVC5 each Razor Page very slow on first load

前端 未结 3 1671
时光取名叫无心
时光取名叫无心 2021-01-31 04:13

This is not the same delay experiences when the first request arrives, but this is a delay that is experienced each time a Razor based view is accessed for the first ti

3条回答
  •  难免孤独
    2021-01-31 04:37

    Parsing views can be slow. Have you tried using RazorGenerator to compile your views?

    Type install-package RazorGenerator in the NuGet Package Manager Console, or install it via NuGet manually here.

提交回复
热议问题