Minification

Minification

Minification

  • Removing all unnecessary characters from source code without changing its functionality
  • Removed characters can include white space, new line, comments, and block delimiters
  • Reduces the amount of transferred data to browsers
  • Useful for CSS, JavaScript and other interpreted languages
  • Minified source code may also help to provide some obfuscation

YUI Compressor for .NET

  • A .NET port of the Yahoo! UI Library's YUI Compressor Java project
  • Use it to minify Javascript and Cascading Style Sheets to an efficient level
  • The JavaScript compression removes comments and white-spaces
  • Obfuscates local variables using the smallest possible variable name
  • CSS compression is done using a regular-expression-based CSS minifier

Combres

  • Open source .NET library that integrates with ASP.NET routing engine
  • Works with ASP.NET WebForm 3.5/4.0, ASP.NET MVC 2.0/3.0 and Azure web applications
  • Enables minification, compression, combination, and caching of JavaScript and CSS resources for ASP.NET and ASP.NET MVC web applications

Sources