Hi getting close to finishing my coding and looking into compressions but can not find out if it advisable to do the following:
Is it best to minify scripts and html and use http compression
or
is http compression enough without minify?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do both. They do different jobs — minification actually eliminates unnecessary characters from the JavaScript code, while http compression will only squish them down.
Since http compression is done by the server automatically, it’s always a good idea to leave it on. Minification is an additional step which you CAN use, but (a) isn’t really helpful with small scripts and (b) should only be done as a final step before deployment anyway. In other words, you should only have to do it once anyhow.