2011-08-29, 10:40 AM
2011-08-29, 10:44 AM
Don't.
It's better to have global.css not gzipped than do the hacks you are failing miserably to do.
It's better to have global.css not gzipped than do the hacks you are failing miserably to do.
2011-08-29, 10:48 AM
Minified global.css --> Done. But with gzip it can be:
Actual Page Size: 13 KB
Size if Gzipped: 3.09 KB
Actual Page Size: 13 KB
Size if Gzipped: 3.09 KB
2011-08-29, 11:01 AM
Yes and that's all very nice if your server supports it. If it doesn't - do yourself a favor and find a better web host. It's a standard feature very much like URL rewrites.
2011-08-29, 11:04 AM
I've gziped my css files (other than form's one) by using this method:-
<?php if(extension_loaded('zlib')){ob_start('ob_gzhandler');} header("Content-type: text/css"); ?>
/* css codes */
<?php if(extension_loaded('zlib')){ob_end_flush();}?>
But this needs to change their name from style.css to style.css.php. So There have to be a way to compress global.css