Unused css - how do you clean it up?

◇◆丶佛笑我妖孽 提交于 2019-12-02 16:44:06

Check out uCSS library from Opera Software.

It helps you to find unused CSS, as well as duplicate CSS. Also, you can get an overview of how many times each rule has been used in your markup. Several options are available by setting up a config file.

Update:

Another great alternative: csscss.

Written in Ruby and supports SASS, Less.

Update:

Another great alternative: uncss.

It works across multiple files and supports Javascript-injected CSS.

Dust Me Selecters and/or CSS Usage Firefox extensions can help you weed out unused CSS.

In Chrome's Developer Tools you can use the Web Page Performance tool to find unused CSS rules.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!