Combine and Minify Generated JS
ASP.NET dynamically adds JS files to pages. These files should be combined and minified into 1 file before being served on the page.
resolved with ASP.NET Web Optimization framework.
5 comments
-
We released ASP.NET Web Optimization with Visual Studio 2012.
It is enabled with file->new project for web applications and is also available on NuGet (http://nuget.org/packages/Microsoft.AspNet.Web.Optimization). The project page, where you can file issues, is at http://aspnetoptimization.codeplex.com/). -
Trooper
commented
Or you can use online Microsoft Ajax Minifier http://www.lotterypost.com/js-compress.aspx or implement on your own website (or VisualStudio project). Get latest source code from http://ajaxmin.codeplex.com/
@Microsoft, please implement it in the Visual Studio including Web Express edition. So we get the updates from codeplex build.
-
Cengiz Ilerler
commented
Search for Bundling and Minification or http://goo.gl/rJ2WG
-
Davefud
commented
Use the Microsoft Ajax Minifier: http://www.asp.net/ajaxlibrary/ajaxminquickstart.ashx It's really nice when you add it as a build task. It also minifies css.
-
LaraE
commented
This can be done with YUICompressor.NET
1) Install-Package YUICompressor.NET
2) http://nuget.org/Packages/Packages/Details/YUICompressor-NET-1-5-0-0