March 2, 201214 yr Hi everyone, My own website evolved over more than 2 years and there are quite a lot of CSS rules in my stylesheet that are not used any more. Is there a reliable tool that automatically detects and removes CSS rules which are not used anywhere in a website ?
March 2, 201214 yr Like this? Thanks for the link, I've been looking everywhere for a way to remove unwanted lines of CSS without breaking the whole site.
March 14, 201214 yr You're probably creating another trouble. First, your stylesheets are overloaded and that itself is obviously a load to the browser already, if you follow that with a cleansing component you're adding another load by using such component to scan the entire webpage to determine which css element isn't being used.
March 14, 201214 yr You're probably creating another trouble. First, your stylesheets are overloaded and that itself is obviously a load to the browser already, if you follow that with a cleansing component you're adding another load by using such component to scan the entire webpage to determine which css element isn't being used. No!!
March 21, 201214 yr Author Came across this thread from which I found this nice tool : scans all pages of your choice in a website and gives all unused CSS selectors. Neat !
Create an account or sign in to comment