ASP.NET Bundling, Minification & Resource Optimization
A complete look into the bundling and minification framework available in the ASP.NET web optimization library. Learn how to efficiently optimize your website resources and assets without comprising the way you want to develop. ASP.NET makes bundling and minification incredibly easy and leaves no reason not to ensure your web application is fully optimized.
What you'll learn
A complete look into the bundling and minification framework available in the ASP.NET web optimization library. Learn how to efficiently optimize your website resources and assets without comprising the way you want to develop. ASP.NET makes bundling and minification incredibly easy and leaves no reason not to ensure your web application is fully optimized. Walk through basic optimization setup against a demo application in both Web Forms and MVC. Then, work to enhance the demo application by adapting the bundling framework for ignoring files, ordering files, and adding CDN scripts with a fallback. You will see how to begin extending the optimization library with your own custom transforms to harness great flexibility. We will take customizations a step further and consider using custom bundles to consolidate and inject resources, enumerations and templates to the client. Finally, we will dive into unit testing your optimization configurations and extensions and the importance of doing so in a team environment.
Table of contents
- Introduction 1m
- Examining Default Templates 6m
- Book Store Demo Application 2m
- Bundle Declarations 2m
- Demo: Bundle Declarations 10m
- Bundle MVC Consumption 1m
- Demo: Bundle MVC Consumption 5m
- Bundle Web Forms Consumption 1m
- Demo: Bundle Web Forms Consumption 3m
- Demo: Style Bundles in Web Forms 2m
- Enabling Optimizations 3m
- Demo: Enabling Optimizations 2m
- Behind the Scenes 4m
- Caching and Versioning 2m
- Demo: Caching and Versioning 3m
- Up Next 1m
- Introduction 1m
- Ignoring Files 5m
- Demo: Ignoring Files 3m
- File Extension Replacements 5m
- Demo: File Extension Replacements 4m
- File Ordering 5m
- Demo: File Ordering 4m
- Content Delivery Networks 7m
- Demo: Content Delivery Networks 4m
- Dynamic Folder Bundle 3m
- Demo: Dynamic Folder Bundle 4m
- Testing Your Bundles 2m
- Up Next 1m