WordPress.org

Ready to get started?Download WordPress

Forums

Use efficient CSS selectors (3 posts)

  1. calik1d
    Member
    Posted 1 year ago #

    I get a score of F from gtmetrix

    Here's a few examples of many:

    Very inefficient rules (good to fix on any page):

    .header_right span.searchfor small - Tag key with 2 descendant selectors and Class overly qualified with tag

    #menu-main ul.sub-menu li ul - Tag key with 3 descendant selectors and Class overly qualified with tag

    .post-navigation a em - Tag key with 2 descendant selectors

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    If there are only 3 instances of inefficient CSS selectors, you really don't need to be worrying about it. As this is specifically a CSS issue, consider posting this on a CSS forum.

  3. calik1d
    Member
    Posted 1 year ago #

    Oh sorry but I only added 3 examples. There's 189 very inefficient rules.

Topic Closed

This topic has been closed to new replies.

About this Topic