0

I have a project with ASP.NET MVC at the end, I Installed Glimpse and get a log, the result log was stange. I have 24088 requests. enter image description here

How can I know where request call? I have just about 15 css and js files and about 5 action call.

How can I decrease these requests ?

CodeCaster
  • 147,647
  • 23
  • 218
  • 272
work question
  • 321
  • 2
  • 11

1 Answers1

1

if most of your requests are for css and java script then use bundling and minification feature, it will reduce your request count and improve the performance.

for CSS create style bundle and script bundle see the example for mode details

 public static void RegisterBundles(BundleCollection bundles){
 bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
             "~/Scripts/jquery-{version}.js"));
     // Code removed for clarity.

}

refer link for mode details

Vivek
  • 9
  • 2
  • refer link for more details https://learn.microsoft.com/en-us/aspnet/mvc/overview/performance/bundling-and-minification – Vivek May 10 '17 at 05:48