I have a CSS file which styles the entire page, and it’s getting Gzipped and it’s minified, but it’s still 200kb. Is there anything else I can do?
Share
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.
I took at look at your profile and found http://www.charliecarver.me, took a look at that and found a css file. If this is your website and the css file you are talking about, you repeat a lot of statements. For example, line 1 to 13 of your css file looks like this:
Line 15 to 17 looks like this:
Line 432 to 434:
Line 826 to 828:
All that could be done with one block of code referencing the body. So, Reduce the amount of repeats you have. Just to give you an idea of what’s repeating:
The elements:
Also, using only what you need will greatly reduce the size.