Now press F12 to see the real magic of the web optimization framework.
Click on the Script tab and select the Test.aspx dropdown list. You can see js?v…….. like some random string that is the bundle name.
Here if you have observed that instead of separate js files only one bundle is loading. You can see the real calling for the various resources into the Network tab. Here you can see, there is only one call for JavaScript files and one for CSS files.
If you have not seen this developer tool of Internet Explorer and you did not observe here for a normal application without the ASP.NET Optimization Framework then you might not be able to differentiate the real so for those people I can show you the proper difference. Now just return to your web.config file and set debug = true and run the application and again press F12 , you will now get the following screen when you click on the Script tab:
You can observe here that now you can see two separate JavaScript files are loading separately. Suppose you have added 20 js files to your aspx page then there are 20 separate calls made for the 20 js files. Now just check in the network tab so here you can see there are 4 separate calls for 4 separate files.
Now I think you can better understand the use of the ASP.NET Web Optimization framework. So here in this article I tried to cover all the basics of how to use the ASP.NET web optimization framework in your website. Please try to use it, if you have not used it then you will surely get a good experience with it.
Thanks for reading.