Before deployment, is there tool to compress HTML class attribute and CSS selectors?

前端 未结 7 2168
暗喜
暗喜 2020-12-24 10:53

In current project, I was asked for compressing the HTML class attribute and corresponding CSS selectors before deployment. For example, the code on

7条回答
  •  死守一世寂寞
    2020-12-24 11:43

    This is amazingly short-sighted.

    • Step 1: Turn on GZip or Zlib compression in web server
    • Step 2: All text gets compressed, often by 70% or more
    • Step 3: There is no step 3.
    • Step 4: PROFIT

提交回复
热议问题