SC Minify - System Plugin for Joomla! 1.5

SC Minify is a system plugin that combines and minifies css and javascript, using PHP Minify http://code.google.com/p/minify/

Thank you for trying this plugin, don't forget to 'publish' it. If you have questions, please email me at phil@snellcode.com

Download plg_system_scminify.zip

SC Minify works by running some code after the html page is rendered by Joomla!, but before it has been sent to the browser.  It does pattern matching to find all css and javascript files being loaded.  It takes all these files, and runs them through PHP Minify, once for css, and once for javascript.

PHP Minify works by taking a list of files as input, and delivering them as a single combined and minifed stream for download.  This increases performance by reducing the overall file size, and also reduces the nuber of separate HTTP requests that need to be performed by the browser.  The css is loaded as early as possible, and the javascript as late as possible.  This is based on the Yahoo! high performace website guidelines to reduce wait times, and increase performance.

There are several improvements I'm working on the next version of the plugin.  For example, I would like to determine the most optimal pattern matching to use for css and javascript, and have a way to exclude external files being loaded from a CDN.  Also, I want to make sure that gzip is being applied by PHP Minify.

I hope you find this plugin useful, and if you would like to contribute to it's development, please contact me.

0 Comments

Add Comment


  • >:o
  • :-[
  • :'(
  • :-(
  • :-D
  • :-*
  • :-)
  • :P
  • :\
  • 8-)
  • ;-)