What's new? | Help | Directory | Sign in
Google
minify
Combines, minifies, and caches JavaScript and CSS files on demand to speed up page loads.
  
  
  
  
    
Show all Featured Wiki Pages:
FAQ History UserGuide
Blogs:
Groups:
Join project
Project owners:
  rgrove, st...@mrclay.org

News

Steve Clay is now co-owner of Minify and is a large way through a complete refactoring of Minify's codebase. The new code will improve and add several features (see "Upcoming Features" below) and allow Minify's components to be used individually for more custom needs. See VersionTwo for more info.

Ryan Grove created Minify, but no longer has time to perform much maintenance. You may contact Steve (steve@mrclay.org) or Ryan (ryan@wonko.com) if you're interested in joining the project.

Overview

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.

In particular, Minify helps you follow rules 1, 10, and 13 of Yahoo!'s Rules for High Performance Web Sites. The version in development will also help you follow rules 3, 4, and 14.

Features

Upcoming Features

Requirements

Installation

For installation and usage instructions, see the User Guide.

Acknowledgments

Minify was inspired by jscsscomp by Maxim Martynyuk and by the article 'Supercharged JavaScript' by Patrick Hunlock.

The JSMin library used for JavaScript minification was originally written by Douglas Crockford and was ported to PHP by Ryan Grove specifically for use in Minify.