Current version: 1.0
Author: Pavel Tzonkov
License: LGPLv2
Copyright ©2010 CSS Joiner Project
CSS Joiner is a realtime CSS optimizer, you may use in your web site/application to minimize CSS code returned from your web server. Multiple local or external files can be loaded just like single CSS file - using single <link> tag (one server request). Caching system is available for faster responses - generate and save compressed CSS code once, until change in source CSS files is done.
Enter URL paths to source CSS files you want to parse. Please type each URL in single line:
Link tag:
Uncompressed code:
Compressed code:
Version 1.0 - May 15, 2010
For security reasons local files with .css extension only can be parsed. By default it's valid rule for external files. There are several external files settings defined and described in index.php file.
To parse all .css files in a directory in your site (e.g. /css):
<link href="/css/" rel="stylesheet" type="text/css" />
The files will be parsed in alphabetical order. You may rename CSS files for wished parse order. For example you can add numbers at the beginning of the file names.
For selective files parsing you may add to href attribute css[] GET parameters pointed to CSS files you want to parse. It's recommended to URL-encode these parameters. Example:
/css/?css[]=common.css&css[]=%2Fapp%2Fstyle.css&css[]=%2Fnew_css&css[]=http%3A%2F%2Fexternal.site.com%2Fstyle.css
This example will parse folowing files if they exists and can be read in order they arranged in the URL:
If you want to use mod_rewrite URL style, you should upload .htaccess from CSS Joiner package to /css. The parsed CSS URL should be transformed to:
/css/common.css../app/style.css../new_css..http://external.site.com/style.css
The files are separated by .. delimiter. You may change the delimiter editing /css/index.php. At the beginning of the file there are several configurable options defined as protected fields with commented descriptions.