Minify 1 vote

Minify is a PHP5 app that helps you follow several of Yahoo!'s Rules for High Performance Web Sites.

It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers.

The design is somewhat similar to Yahoo's Combo Handler Service, except that Minify can combine any local JS/CSS files you need for your page.

Features

  1. Combines and minifies multiple CSS or JavaScript files into a single download
  2. Uses an enhanced port of Douglas Crockford's JSMin library and custom classes to minify CSS and HTML
  3. Caches server-side (files/apc/memcache) to avoid doing unnecessary work
  4. Responds with an HTTP 304 (Not Modified) response when the browser has an up-to-date cache copy
  5. Most modules are lazy-loaded as needed (304 responses use minimal code)
  6. Automatically rewrites relative URIs in combined CSS files to point to valid locations
  7. With caching enabled, Minify is capable of handling hundreds of requests per second on a moderately powerful server.
  8. Content-Encoding: gzip, based on request headers. Caching allows it so serve gzipped files faster than Apache's mod_deflate option!
  9. Test cases for most components
  10. Easy integration of 3rd-party minifiers
  11. Separate utility classes for HTTP encoding and cache control

SmartOptimizer 0 votes

SmartOptimizer (previously named JSmart) is a PHP library that enhances your website performance by optimizing the front end using techniques such as minifying, compression, caching, concatenation and embedding. All the work is done on the fly on demand.
SmartOptimizer is open source and released under the terms of GPL (GNU General Public License).

SmartOptimizer Features

  • SmartOptimizer increases your website download speed by reducing the size of JavaScript and CSS files approximately up to 80% or even higher.
  • SmartOptimizer reduces count of http requests by concatenating JS/CSS files together.
  • It also reduces http requests by embedding CSS images and CSS imported files.
  • If your website has a large amount of JavaScript and CSS files, SmartOptimizer reduces your monthly bandwidth usage amazingly.
  • SmartOptimizer generates minified, compressed, combined and embedded files on the first request and caches them on the server and uses the cache on future requests.
  • It doesn't embed duplicated urls (i.e. css sprites) in css files for better performance.
  • It also knows to regenerate already cached files if the originals have been changed.
  • SmartOptimizer handles browsers that doesn't support gzip encoding and sends them non-gzipped content.
  • It also forces the browser to cache the files optionally forever or until they have not changed.
  • SmartOptimizer removes Etag headers. (for better performance on clustered servers).
  • It is very easy to install and usually there is no need to do any changes on your codes.