CSS Optimizer

Discussion in 'CSS' started by satishtalim, Jul 1, 2007.

  1. #1
    satishtalim, Jul 1, 2007 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    optimizing anything AUTOMATICALLY with any sort of tool is usually a failure... despite many people's claims to the contrary. It is another exampleof people taking shortcuts that wouldn't be necessary with clean formatting and a understanding of how things work.

    If you concentrate on class reduction in your HTML, use of verbose semantic classnames (again describing what something is, NOT how it looks) inheretance of properties, cascade order and use of contextual selectors - the need for css optimization should rapidly approach nil.

    Again, instead of leaning on a tool as a crutch, you are most often better served just trying to do it right in the first place.

    Of course if you are stuck behind crap like Wordpress or Joomla, or relying on even bigger crutches like dreamweaver or frontpage - by the time you get to your CSS it might already be too late to worry about 'optimization' since that's already thrown out the door for the HTML.
     
    deathshadow, Jul 1, 2007 IP
  3. satishtalim

    satishtalim Peon

    Messages:
    440
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for some good advise.
     
    satishtalim, Jul 1, 2007 IP
  4. bnandika

    bnandika Well-Known Member

    Messages:
    1,079
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    140
    #4
    bnandika, Jul 5, 2007 IP