Baked JS and CSS
Introducing GuteZeiten…
gz.php is a build system for gzipped JS & CSS baking for reduced HTTP-Traffic. That means just throw that little script in your webroot and merge your .js- and .css-Files together with easiness. The result is faster loading websites without lags on websites utlilitising a great amount of differnet scripts.
Features
- concenates JavaScript and CSS files (don’t mix them!) to decrease connections requests for e.g. HTML pages
- optimizes your JavaScript and CSS files for size using the the harsh way with JavaScript-Packer and CSS-Tidy
- or using more „softer“ and tolerant and minimal built-in code
- ability to use plugins for source input, e.g. use a template engine to localize your JavaScript-files
- uses HTTP E-Tag behavior for unmodified files so the browser only loads
- new file versions when there are modified versions
- output is fully and only UTF-8 (files will be converted)
Usage
E.g, if you want file1.js and file2.js baked together put following in your HTML-Code:
file1.js?lang=de&message=Hello+World|file2.js
…which you then URL-encode to something like…
<script src="gz?file1.js%3Flang%3Dde%7Cfile2.js">
Download
Current Version
Changelog
Version 1.5.2 (2008-03-20)
- another little fix for stupid apache rewriters
Version 1.5.1 (2008-03-20)
- fixed little path problem with CSS
Version 1.5 (2008-02-26)
- refactured code using PHP5 OOP
Version 1.4
- added plugin system
Version 1.3
- added E-Tag support
Version 1.2
- added more accurate browser GZIP-check
- added csstidy
- added JavaScriptPacker
Version 1.1
- added more accurate regex for file cleanups
- converted everything to UTF-8