Forum Moderators: not2easy

Message Too Old, No Replies

CSS Code finder

         

tonynoriega

7:34 pm on Dec 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i found a free tool out there... and not sure how well it is working.

i have a style sheet with a bunch of unused styles... well so i think unused.

is there to crawl my site, and run it against my style sheet to see what is not used?

rocknbil

8:33 pm on Dec 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



FireFox combined with DustMe [addons.mozilla.org] is pretty effective.

SuzyUK

8:55 pm on Dec 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



tony, good question, and I'm only going to add more :o

>>Dustme

yes its good, but I'm not sure it's 100% good or reliable yet, I've never yet deleted a rule because of it, call me old fashioned ;) as I'm not sure anything yet has been built that deals with the cascade and inheritance.

<-echos

well so i think unused.

CMIIW, but doesn't Dustme take selectors literally? if so what about inheritance? In other words it may think a selector is unused but what if that rule is passing on something that is being inherited somewhere

(This is where I still hand check!)

also larger sites with modules may very well have CSS that is unused on the majority of pages, so how would one go about getting the CSS to only appear for the pages it's required on?