Check jquery and jquery min, why we need it and what is the difference ?
Yes , it saves memory and hence load time .
So how to achieve the same in a JAVA or a RUBY app.
Yahoo came with a YUI compressor .
Link : http://developer.yahoo.com/yui/compressor/
What it does :
It compresses the JS and CSS
– by removing white spaces
– by replacing the variables with short names etc
Link : https://github.com/sstephenson/ruby-yui-compressor