What is the effect of css code compression? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:12:43
Original
1124 people have browsed it

Recently I have been paying attention to the performance of the website, so I saw that some websites compressed the css code together, which is very compact.

I also tried it. I have two css files. One is 15k and the other is 16k. The total size is 31k.

After I merged it into one file, I compressed the code in Together, when saved and viewed, it is 28k

After testing, I feel that the difference is not very big. Is the effect of your compression great?

I also want to compress the js code too?


Reply to the discussion (solution)

How did you test? Personal testing will not make much sense. If your website has a lot of traffic, then The effect is detailed

Merge files, reduce http requests
Clear spaces and newlines, reduce file loading size.


Doesn’t mean much to me,

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template