Before reading this article, I highly recommend reading the previous parts of the series on ASP.NET:
- Getting Started With ASP.NET MVC
- First ASP.NET MVC 5.0 Application
- How to Publish ASP.NET MVC on IIS MVC 5.0: Part 3
- How to Publish ASP.NET MVC 5.0 Application on Windows Azure: Part 4
- ASP.NET MVC 5.0 Views (Dynamic/Strongly Typed Views) - Part 5
- What Are Areas in ASP.NET MVC - Part 6
- Using Partial Views In ASP.NET MVC 5.0: Part 7
- MVC 5.0 Application using Entity Framework DB First Approach: Part 8
- MVC 5.0 Application using Entity Framework Code First Approach: Part 9
- HTML Helpers In ASP.NET MVC 5.0: Part 10
- Using TempData, ViewData and ViewBag in ASP.NET MVC 5.0: Part 11
- Filters in ASP.NET MVC 5.0: Part 12
- Validations In ASP.NET MVC 5.0: Part 13
- Layouts (Master Pages) in ASP.NET MVC 5.0: Part 14
- Facebook Authentication In ASP.NET MVC 5.0: Part 15
- How to Configure Google Sign-In for ASP.NET MVC 5: Part 16
- Using WCF Services In ASP.NET MVC 5: Part 17
What is Bundling?
A bundle may consist of multiple CSS and JavaScript files. A bundle is a logical group of files that is loaded with a single HTTP request. You can create style and script bundle for CSS and JavaScript’s respectively by calling BundleCollection class Add() method with in BundleConfig.cs file.
What is the mean of Bundling?
- In Asp.net MVC, Bundling means combining multiple files into a single file.
- Mainly Bundling is done for CSS, JS files.
What are the benefits of Bundling?
- With the help of Bundling, there will be having less HTTP request to the server.
- This would definitely reduce the page load time.
Why we use Bundling?
- Bundles can be used for run-time swapping of css or jss file.
An Example of Bundled CSS-
- html, body
- {
- font - size: 2e m;
- font - family: ‘Arial’;
- margin: 10 px;
- }
- html, body
- {
- background - color: red;
- color: green;
- }























BablooPosted Aug 23, 2019, 6:38 AM
Very nice article sir ji
Aya SadyPosted Apr 25, 2018, 2:43 AM
Hello , thanks for your series , I want to ask you is this article is the last article in this series ? if Not can you provide me the link of the next articles in this series please?Nitin Pandit
Islam GhanemPosted Nov 8, 2016, 5:46 PM
$ is not defined(…) what can i do
Islam GhanemPosted Nov 8, 2016, 5:45 PM
When i do like this Example i found this error
Pradeep SahooPosted May 18, 2016, 12:48 PM
Good share ....you are a genius writter....
Prerana TiwariPosted May 18, 2016, 12:31 AM
Nice article sir...
Neeraj KumarPosted May 17, 2016, 2:58 PM
Nice article
Bhuvanesh MohankumarPosted May 17, 2016, 2:20 PM
Good one
Kuppurasu NagarajPosted May 17, 2016, 10:53 AM
Nice sharing..