CHAPTER 24

Image

Bundles and Display Modes

In this chapter, we are going to look at two features that the MVC Framework provides to make developing the client-side part of a Web application simpler and easier. The first feature, called bundles, allows us to organize and optimize the CSS and JavaScript files that our views and layouts cause the browser to request from the server. The second feature, display modes, allows us to target different types of devices with different views.

Understanding the Default Script Libraries

Some of the features that we show you in this chapter relate to the management of JavaScript files. When you create an MVC project ...

Get Pro ASP.NET MVC 4, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.