Michael Stum
Michael Stum

Reputation: 180914

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?

Upvotes: 18

Views: 8187

Answers (3)

Dinesh Rajan
Dinesh Rajan

Reputation: 2584

.Net 4.5 have inbuilt support for Bundling and Minification

Upvotes: 3

Compiler
Compiler

Reputation:

you can find here an usefull article for it

Upvotes: 3

Nick B
Nick B

Reputation: 2548

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

Upvotes: 16

Related Questions