Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Performance of !important

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43190
    micjamking
    Participant

    Does using !important in your CSS have any negative effects on performance? Is it better to avoid them at all costs, even if it means longer, yet more specific rules in your stylesheets?

    #127217
    Emil
    Participant

    I don’t think there is any performance impact, but you should generally try to avoid !important and use specificity to your advantage. More here:
    <http://isobar-idev.github.com/code-standards/#_calculating_specificity>

    #127411
    micjamking
    Participant

    Thanks guys! And thank you Emil for the link.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.