Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find CSS usage for a complete site? [closed]

Tags:

css

frontend

I've come in at the end of a big Drupal site build, and the resulting CSS files are... verbose and less than tidy, to say the least!

Are there any tools for checking the entire site to a) see if there are unused styles and b) how often styles are used (and thus assist in refactoring them).

I've had a look at the CSS Roundup Firefox Addon but this relies on manually clicking through all the pages and I want to make sure I don't delete any in-use styles.

Edit: found existing post on Stack Overflow entitled How can I find unused images and CSS styles in a website? and this What tool can analyze my site and report on unused / unneeded CSS?

like image 361
Jake Rayson Avatar asked Nov 28 '11 16:11

Jake Rayson


1 Answers

csslint can help, though i can't say it'll do everything you want

http://csslint.net/

like image 92
albert Avatar answered Nov 15 '22 20:11

albert