Welcome Guest, Not a member yet? Register   Sign In
Combining Javascript and CSS files to lower loading times.
#2

[eluser]Armorfist[/eluser]
I don't know if its exactly what you're looking for, but CI supports output compression by default if you set the $config['compress_output'] variable to 'TRUE' in the 'application/config/config.php' file:

Code:
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads.  When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| VERY IMPORTANT:  If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts.  For
| compression to work, nothing can be sent before the output buffer is called
| by the output class.  Do not "echo" any values with compression enabled.
|
*/
$config['compress_output'] = TRUE;


Messages In This Thread
Combining Javascript and CSS files to lower loading times. - by El Forum - 02-07-2008, 08:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB