Web pages that refer to multiple CSS or JavaScript files often suffer from slower page loads, since the browser must request each referenced file individually. Most browsers will only make two simultaneous requests to a single server.
The latency involved in opening multiple requests and waiting for them to finish before making new requests can result in a user-visible delay, and that can make your users sad.
Minify attempts to fix this problem by combining multiple CSS or JavaScript files into one download.
By default, it also removes comments and unnecessary whitespace to decrease the amount of data that must be sent to the browser. Most importantly, it does all of this on the fly and requires only a few simple changes to your existing web pages.
Can be used as a stand-alone, or part as other more targeted modules.
Features:
- Combines and minifies multiple CSS or JavaScript files into a single download on the fly.
- Uses a PHP implementation of Douglas Crockford's excellent JSMin library for JavaScript minification.
- Caches results to avoid doing unnecessary work.
- Responds with an HTTP 304 (Not Modified) response when the browser already has the requested content in its cache.
- Automatically rewrites relative URLs in combined CSS files to point to the correct location.
- Written in a highly efficient, maintainable, and easily extensible style.
- Written with security as a primary concern; unlike some similar utilities, Minify will never allow the client to request a file it shouldn't have access to.
- Extremely fast; with caching enabled, Minify is capable of handling hundreds of requests per second on a moderately powerful server.
What is new in this release:
- Updated CSSmin and added Minify_CSSmin wrapper
- Fix windows issue associated with long cache filenames
- Fix issue with web-based tool
- Fix bug in JSMin exceptions
- Fix "about:blank" bug in CSS_UriRewriter
- Cite is no longer a block element in HTML minification
- Allow for definition of custom config locations outside of the min directory
What is new in version 2.1.6:
- JSMin fixes
- Prevents some Closure Compiler API failures
- Uses autoloading for all class loading
- Allow setting stack-size in YUI Compressor wrapper
- Adds jsCleanComments option to HTML minifier
- Upgrades CSSmin
- CLI script more portable
- Adds composer.json
- Multiple group support in HTML Helper
- Cache adaptor for XCache
Comments not found