Deadweight is a CSS coverage tool. Given a set of stylesheets and a set of URLs, it determines which selectors are actually used and reports which can be “safely” deleted.

deadweight -s styles.css -s ie.css index.html about.html
deadweight -s
deadweight --root -s '/templates/2009/css.php?p=mac' / /everfresh /about
cat styles.css | deadweight index.html

Awesome! I wonder if I could get this working in the HTML5 Bolierplate build scripts?

The post ‘Deadweight’ was first published by Jeffrey Sambells on