How can be Images, CSS and Javascript files compressed?
Your web server can handle this, usually without much extra configuration, quite easily. Is there a particular issue you’re trying to address?
As well as the web server compression, for images you can usually export them into ‘web quality’ or lower quality versions.
And for css + js, you could ‘minify’ them as part of your build using something like yuicompressor - YUI Compressor
In my opinion GZIP compression is the easiest and most common source for easy file compression, I have it enabled on my development and production server and on average I got a 30% speed increase without any manual file compression. If you search Google about how to enable GZIP compression you will find heaps of resources about it.
I have a LAMP host with Mod Deflate so it’s a simple matter of adding this to the htaccess file
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
AddOutputFilterByType DEFLATE img/svg+xml application/xhtml+xml application/xml
AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
AddOutputFilterByType DEFLATE font/truetype font/opentype
</IfModule>
what if gzip compression isn’t allowed on my web host? are there any alternative?