Use the minify library
We need to copy off/merge the functionality from the minify project over/into the IcludeCSSJS class.
Taken from the google code project of minify:
Features
Taken from the google code project of minify:
Features
- Combines and minifies multiple CSS or JavaScript files into a single download
- Uses an enhanced port of Douglas Crockford's JSMin library and custom classes to minify CSS and HTML
- Caches server-side (files/apc/memcache) to avoid doing unnecessary work
- Responds with an HTTP 304 (Not Modified) response when the browser has an up-to-date cache copy
- Most modules are lazy-loaded as needed (304 responses use minimal code)
- Automatically rewrites relative URIs in combined CSS files to point to valid locations
- With caching enabled, Minify is capable of handling hundreds of requests per second on a moderately powerful server.
- Content-Encoding: gzip, based on request headers. Caching allows it so serve gzipped files faster than Apache's mod_deflate option!
- Test cases for most components
- Easy integration of 3rd-party minifiers
- Separate utility classes for HTTP encoding and cache control
Leave a comment
on 2010-11-29 07:17 *
By nick_ramsay
You're suggesting a few major changes, such as database, forms and now minify. Would it not be best to do one major change per Hotaru version rather than bundled them all into the same release straight away?
on 2010-11-29 09:11 *
By
Sure, I am putting stuff in here to keep them under consideration.
If, when and where those things actually get implemented is a matter of decision.
That said, I may indeed be wrong to attach those issues to the current milestone.
I am off to fix that now.
If, when and where those things actually get implemented is a matter of decision.
That said, I may indeed be wrong to attach those issues to the current milestone.
I am off to fix that now.