Tuesday, 21 April 2020

Optimization in MVC


  1. Optimization is the technique that is used to reduce the size of CSS and Script in bundleConfig.cs
  2. It make bundle compact and smaller in size.
  3. optimization work in release mode by default it is disable in debug mode.


Syntax Of optimization:-  this syntax is used in the global.asax. we can enable or disable the optimization with the help to set as true or false.

  public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            System.Web.Optimization.BundleTable.EnableOptimizations = false;
        }
    }

No comments:

Post a Comment

What is Agile,advantage and disadvantages

Introduction:- It is a software development life cycle used for software development, that is characterized by the division of tasks in...