I would like to know methods to improve performance of asp.net MVC web application? To get better score on Google Page Insights
Thank you
There are several ways to improve the performance of your asp.net MVC web-application:
OutputCacheAttribute
to save unnecessary and action executions. You can take a look here at complete article:
IQueryable
Instead of List
// Removing all the view engines
ViewEngines.Engines.Clear();
//Add Razor Engine (which we are using)
ViewEngines.Engines.Add(new RazorViewEngine());?
<system.webServer>
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
</system.webServer>?
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly