Unused CSS Tool Recomendations
-
Hey moz,
Im currently converting my site to mobile as its an older template based on tables it will make a lot of CSS redundant. I cant delete as i go incase a page uses it im unaware of so need to clean it up when its done.
Is there a tool that crawls my entire website and highlights the unused CSS in the files? Ive found a few paying tools that claim to do so but am reluctant to just spend money on something without a recommendation.
Cheers!
-
How about: https://unused-css.com ?
-
Thanks for the suggestion I found this one too, i tried their single page one and it seemed ok.
But it doesn't let you download results to see how good they are, i was hoping for a recommendation from someone who has used a couple as i dont want to throw money at something to find out its a waste of time.
-
Hi there.
I used to use a browser plugin called "dust me selectors". It was awesome, but then one day it stopped working on my computer for no obvious reason. However, it works on all other computers in our office.
So, give it a try. It's accurate and free. Of course, don't use it blindly, hoping that everything is 100% is done for you.
Also, I've heard that there is a github project for css clean up, but it was built for linux, so I never used it and don't know if it's any good. i believe it's this one https://github.com/addyosmani/grunt-uncss
Cheers.
-
On first use it looks pretty good. cheers Dmitrii.