So how do we implement bundling in MVC
Open_BundleConfig.cs_from the_App_Start_folder.
InBundleConfig.cs, add the JS files you want bundle into a single entity in to the bundles collection. In the below code we are combining all the javascript JS files which exist in the_Scripts_folder as a single unit in to the bundle collection.
Below is how your_BundleConfig.cs_file will look like:
Once you have combined your scripts into one single unit we then to include all the JS files into the view using the below code. The below code needs to be put in the ASPX or Razor view.
If you now see your page requests you would see that script request is combined into one request.