how to compress the html/js/style files in codeigniter ??? |
[eluser]Nick Husher[/eluser]
[quote author="mythilisubramanyam" date="1252323375"]can i use gzip or defalte to compress html/js/style/image files???? or is there any other option to compress them ???[/quote] You can definitely use gzip to compress files. That's a server configuration, though, and has nothing to do with CodeIgniter. Check out the relevant web server documentation on turning on a gzip filter. There are a heap of tools for minifying javascript and css. I've heard the best javascript minifier out there is the one put out Yahoo, but it requires a certain amount of java handwaving. Still, if bit weight is your primary concern, writing a simple compressor shell script to run the YUI compressor on all your script/css files might be worthwhile. For images, you can use smushit, which doesn't further compress your lossy-compressed images (jpeg, gif, etc), but it rips out certain bits of metadata as well as optimizes in some ways that major image programs (Photoshop, I'm lookin' at you) miss when you export them into web-friendly formats. |
Messages In This Thread |
how to compress the html/js/style files in codeigniter ??? - by El Forum - 09-07-2009, 12:36 AM
how to compress the html/js/style files in codeigniter ??? - by El Forum - 09-07-2009, 11:30 AM
how to compress the html/js/style files in codeigniter ??? - by El Forum - 09-07-2009, 11:36 AM
how to compress the html/js/style files in codeigniter ??? - by El Forum - 09-07-2009, 09:48 PM
how to compress the html/js/style files in codeigniter ??? - by El Forum - 09-07-2009, 11:07 PM
how to compress the html/js/style files in codeigniter ??? - by El Forum - 07-22-2010, 06:07 AM
|