Many times I have read on many question's answers that we don't need to remove white-space and comments from html, css and js files to reduce file size manually We can do this automatically on server.
1) Is it like in my dreamweaver it will be like this
/*Some Comment*/
.footer li h3 {
margin: 0 0 6px;
font-weight: bold;
display: inline;
color: #e92e2e; }
/*Some comment*/
.footer li h3 a {
font-weight: normal;
font-size: 1em;
color: #e92e2e; }
On server it will be this ?
.footer li h3{margin:0 0 6px;font-weight:bold;display:inline;color:#e92e2e}.footer li h3 a{font-weight:normal;font-size:1em;color:#e92e2e}
I can do this by hand or using this tool http://www.refresh-sf.com/yui/
2) How to do this on Lamp server?
3) On server do we just remove white space and comments?
mod_pagespeedfor example. But a properly configuredmod_deflateis often sufficient.