Can you optimize CSS?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brujah
    Beer Money Baron
    • Jan 2001
    • 22157

    #1

    Can you optimize CSS?

    I've been modifying and modifying the css and html for a site. I think there might be a lot of extra css that I'm not using anymore. I'd like to remove it. Is there a tool to automate this?
  • SayWhut
    Confirmed User
    • Jan 2008
    • 962

    #2
    This tool can help tweak up the css:-

    http://code.google.com/speed/page-speed/

    Comment

    • fris
      Too lazy to set a custom title
      • Aug 2002
      • 55679

      #3
      dont know of any tool other than to delete the lines not in use
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      Comment

      • Paul&John
        Confirmed User
        • Aug 2005
        • 8643

        #4
        Originally posted by SayWhut
        This tool can help tweak up the css:-

        http://code.google.com/speed/page-speed/
        Going to try this, thanks for sharing!
        Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
        Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

        Comment

        • Brujah
          Beer Money Baron
          • Jan 2001
          • 22157

          #5
          Thank you. Page Speed said I had about 20% of unused css.

          Comment

          • harvey
            Confirmed User
            • Jul 2001
            • 9266

            #6
            Originally posted by Brujah
            Thank you. Page Speed said I had about 20% of unused css.
            don't pay much attention to that, most of the times extreme CSS optimization implies that you'll go crazy every time you need to edit the file again.

            Anyway, if you really, really, REALLY need it, do the following:

            - be sure to reduce all the elements sharing the same definitions resetting them on start. ie, if your images are going to have no borders, just img{border:0}, html{margin:0;}, h1, h2, h3{color:#333;}, and so on.

            - use any of tidy service out there. Personally, I like http://www.cleancss.com/ since it has some control to balance readability and size
            This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

            Comment

            Working...