I recently studied the new architecture of ASP. NET mvc4.0 beta and found a new architecture of ASP. net4.5, which can optimize the browsing speed conveniently.
In the mvc4.0beta Project template, global. bundletable is used by default in asax. bundles. the registertemplatebundles method registers the CSS and JS binding registrations used by Internet templates. However, this is not commonly used by users. For example, if you add a new CSS or JS, it will not be bundled, because bundletable. bundles. registertemplatebundles is only used to register JS and CSS files used in the Internet template project template.
The bundletable. Bundles. enabledefaultbundles method automatically binds all CSS or JS files in the specified directory!
In fact, Microsoft chose the first method by default to show its attitude. Using custom bundling is more flexible, but development is a bit cumbersome and needs to be defined in global. asax. If you still do not understand, you can browse myArticle"ASP. net4.5 bundletable bundling tutorial [A Xu edition]" to view detailed instancesCode.
ASP. net4.5 bundletable bundling tutorial [A Xu] http://www.cnblogs.com/a-xu/archive/2012/04/10/aspnet_BundleTable.html