![]() A bundle may include multiple files, but regardless of the number of files in it, a single request returns the whole bundle.Bundling is among the new features of Asp.net MVC that combines the files into a single file per bundle.The browser sends two distinct requests to load two different JavaScript files, MyJavaScriptFile-1.js and MyJavaScriptFile-2.js, in the figure above.Īs illustrated below, the bundling technique in ASP.NET MVC allows us to load two JavaScript files, MyJavaScriptFile-1.js and MyJavaScriptFile-2.js, in a single request. In the namespace, MVC 5 has the following bundle classes: Source – Loading script files in separate requests The technique of bundling is shown in the diagram below: ![]() Bundling allows us to request a collection of static files from the server in one HTTP request. MVC 4 introduced request bundling and minification techniques to reduce request load time.
0 Comments
Leave a Reply. |