- Optimization is the technique that is used to reduce the size of CSS and Script in bundleConfig.cs
- It make bundle compact and smaller in size.
- 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