How to removed unused css easily

Discussion in 'CSS' started by News Updates, Feb 22, 2011.

  1. #1
    I ve designed a new theme but there is alots of css unused or full of errors. theme fuction work well.

    I checked with firebug. its listing alot of unused css. but its headache to find classes and id one by one.

    is there any tool which shows used part of css in theme???
     
    News Updates, Feb 22, 2011 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    qazu, Feb 24, 2011 IP
  3. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Careful though just because the selectors aren't used on any particular page doesn't mean they are not used at all! They might be used somewhere else...
     
    Divisive Cottonwood, Feb 25, 2011 IP
  4. AtSeaDesign

    AtSeaDesign Active Member

    Messages:
    172
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    93
    #4
    Good points. But I thought I read that the dust add on you can set it up to review your sitemap.xml file. That way it scans all of your pages to see what's used on your site. Seems fail proof to me but it's always a good idea to back up before experimenting.
     
    AtSeaDesign, Feb 27, 2011 IP
  5. marc marc

    marc marc Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    there's also a web app that does that. It's called http://Unused-CSS.com. It'll scan multiple pages and let you download a clean version of the CSS files.
     
    marc marc, Mar 5, 2011 IP
  6. News Updates

    News Updates Member

    Messages:
    490
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    35
    #6
    thats what i tried
     
    News Updates, Mar 5, 2011 IP
  7. AtSeaDesign

    AtSeaDesign Active Member

    Messages:
    172
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    93
    #7
    did you try the add on I mentioned? Do you use FF?
     
    AtSeaDesign, Mar 5, 2011 IP
  8. News Updates

    News Updates Member

    Messages:
    490
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    35
    #8
    No I didn't because my my sitemap is very big :D
     
    News Updates, Mar 5, 2011 IP
  9. facebook-applications

    facebook-applications Peon

    Messages:
    199
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    facebook-applications, Mar 7, 2011 IP