简体   繁体   中英

Combining and Caching multiple JavaScript files in ASP.net

Either I had a bad dream recently or I am just too stupid to google, but I remember that someone somewhere wrote that ASP.net has a Function which allows "merging" multiple JavaScript files automatically and only delivering one file to the client, thus reducing the number of HTTP Requests.

Server Side, you still kept all the individual .js files, but the Runtime itself then creates one big JavaScript file which is then included in the script-tag instead and can be properly cached etc.

In case that this function really exists and is not just a product of my imagination, can someone point me in the right direction please?

It's called Script Combining . There is a video example from asp.net explaining it here .

.Net 4.5内置了对Bundling和Minification的支持

你可以在这里找到一篇有用的文章

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM