Rejuicer is a CSS & JavaScript minification tool for ASP.NET.
You can configure Rejuicer to combine many different JavaScript (or CSS) files into one file, and give this “combined” file a URL:
eg. http://mysite.com/combined.js
When combined.js is requested, Rejuicer will combine all of the JavaScript files that you have configured for this URL, and then (optionally) minify the output for optimal page load times.
Minifiers help to reduce page load times, by minimizing the size of the JavaScript and CSS files that need to be downloaded by a user visiting your site. Also, by combining multiple files into one, you can minimize the number of requests made to your server. Many browsers limit the number of simultaneous requests to one domain to 4 or 5, so it can really help to bring down all of the required CSS or JavaScript in one request.
There are several good minification tools out there, but we think there are several features that make Rejuicer unique:
Use a simple, readable fluent configuration. Configure all of your minifications inside Global.asax, so that they run once at application start.
Include all files in a directory matching a wildcard (eg ~/Scripts/AdminPages/.js, or ~/Scripts/jquery.js)
Rejuicer’s HTML helpers automatically detect if debug mode is turned on and if so – will reference your original source JavaScript files, without performing any combine/minification operations. This allows you to reference your original JavaScript files directly in development environments for easy debugging.
Rejuicer integrates into your site as either a HTTP Module or HTTP Handler. It nevers writes to the local filesystem, and therefore runs without issue on cloud providers such as Windows Azure.
Rejuicer uses the awesome Yahoo YUI compressor library to perform all JavaScript and CSS minification operations.
For a quick start guide to using Rejuicer, check out the Getting Started guide.
The full documentation for Rejuicer is available on the Rejuicer BitBucket wiki.
Questions & Comments