A nice article I found about speeding up the css part of your site. I figured this could be applied to pligg as well in our search for a faster pligg site.
uses php and zlib.
http://paulstamatiou.com/2007/03/18/...css-even-more/


![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| A nice article I found about speeding up the css part of your site. I figured this could be applied to pligg as well in our search for a faster pligg site. uses php and zlib. http://paulstamatiou.com/2007/03/18/...css-even-more/ |
| |||
| Yep, a very good tip, and works well for javascript files too. The real benefits of compression come from compressing these type of files in my opinion, not simply the html. If you have a large number of js / css files in a directory and don't want to change them all (ie. feeling lazy ), you can add 2 files to the directory that will do the job for you (needs htaccess access and zlib enabled):.htaccess Code: AddHandler application/x-httpd-php .css php_value auto_prepend_file css.php php_flag zlib.output_compression On Code: <?php
header("Content-type: text/css; charset: UTF-8");
header("Cache-Control: must-revalidate");
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 3600) . " GMT");
?>
|
| ||||
| You can speed up your Pligg site dramatically by gzipping your CSS file. It almost cut the loading time in half when I did testing with it. |
| |||
| can we expect to see these things in the next release? |
| |||
| Hi all, i've been searching for optimizing js and css, i thought this links could be useful if anyone tries to optimize. WP css OptimizerThis one is a plugin of wordpress to optimize the js in one file and the css in other rakaz combine.phpAnd this one is a standalone php script to combine js and css. I have no skills programming so i haven't implemmented yet to my site, but i think it can be useful |
| |||
| Robson » CSS Compressor seems to be the most reliable CSS compressor. And Dojo ShrinkSafe -- the safe way to make your JS sprightly seems to be a very good Javascript compressor. It took thickbox from 11kb to 7kb for me. Geoserv |
| ||||
| I tried Dojo and it didn't make any difference in the size of the file for me... Did you click on the 'strip newline chars?' box? I wouldn't use one of the automatic CSS compressors - it's best to do it manually, although the PHP trick as listed above works well.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Optimize tags table in MySql | clems365 | Questions and Comments | 7 | 06-02-2008 05:22 PM |
| Optimize your pligg site for better SEO with these tutorial instructions | pliggedit | Questions and Comments | 11 | 03-06-2008 01:39 PM |