Reputation: 3379
I would like to look into the way bundling is implemented. It seems like there is default bundling as my MVC project knows all about adding in javascripts that I don't have and never explicitly included.
Upvotes: 2
Views: 156
Reputation: 4458
Bundle is simply logical group of files that could be referenced by unique name and being loaded with one HTTP request. Two things that will help you use these new features, are RegisterTemplateBundles()
and EnableDefaultBundles()
.
Bundling of scripts is a new feature in MVC 4, to learn more about it take a look at New in ASP.NET MVC4: Bundling and Minification and Yet Another Bundling Approach for MVC 4
The purpose of bundling and minification is to help increase the performance of your Websites by reducing the number and size of HTTP Requests to the server.
If you want code examples you can find walk-troughs and source examples in Visual Studio's Nuget package manager. There are many other sources, comment if you want me to add more.
Upvotes: 1