Forums

Twenty Ten "has inefficient css rules" according to Google. (1 post)

  1. digitaltoast
    Member
    Posted 1 year ago #

    Hello, I'm trying to optimize my site, and although I don't personally have any problem with the TwentyTen theme, Google Pagespeed makes the following observations. Before I go and start hacking it up, I was wondering if anyone else had done so, or has any plans to do so, or any suggestions?

    /wp-content/themes/twentyten/style.css has 11 very inefficient rules, 51 inefficient rules, and 5 potentially inefficient uses of :hover out of 265 total rules.
    Very inefficient rules (good to fix on any page):
    
        * #access div.menu ul    Tag key with 2 descendant selectors and Class overly qualified with tag
        * #access ul li.current_page_item>a    Tag key with 2 descendant selectors and Class overly qualified with tag
        * #access ul li.current-menu-ancestor>a    Tag key with 2 descendant selectors and Class overly qualified with tag
        * #access ul li.current-menu-item>a    Tag key with 2 descendant selectors and Class overly qualified with tag
        * #access ul li.current-menu-parent>a    Tag key with 2 descendant selectors and Class overly qualified with tag
        * * html #access ul li.current_page_item a    Tag key with 5 descendant selectors and Class overly qualified with tag
        * * html #access ul li.current-menu-ancestor a    Tag key with 5 descendant selectors and Class overly qualified with tag
        * * html #access ul li.current-menu-item a    Tag key with 5 descendant selectors and Class overly qualified with tag
        * * html #access ul li.current-menu-parent a    Tag key with 5 descendant selectors and Class overly qualified with tag
        * * html #access ul li a:hover    Tag key with 5 descendant selectors
        * #content tr.odd td    Tag key with 2 descendant selectors and Class overly qualified with tag
    
    Inefficient rules (good to fix on interactive pages):
    
        * .comment-body tr th    Tag key with 2 descendant selectors
        * .comment-body thead th    Tag key with 2 descendant selectors
        * .entry-content tr th    Tag key with 2 descendant selectors
        * .entry-content thead th    Tag key with 2 descendant selectors
        * ol ol ol    Tag key with 2 descendant selectors
        * ol ol ol ol    Tag key with 3 descendant selectors
        * #access .menu-header ul    Tag key with 2 descendant selectors
        * div.menu ul    Tag key with descendant selector and Class overly qualified with tag
        * #access .menu-header li    Tag key with 2 descendant selectors
        * div.menu li    Tag key with descendant selector and Class overly qualified with tag
        * #access ul ul    Tag key with 2 descendant selectors
        * #access ul ul li    Tag key with 3 descendant selectors
        * #access ul ul ul    Tag key with 3 descendant selectors
        * #access ul ul a    Tag key with 3 descendant selectors
        * #access ul ul :hover>a    Tag key with 3 descendant selectors
        * #access ul li:hover>ul    Tag key with 2 descendant selectors
        * #content ul ul    Tag key with 2 descendant selectors
        * #content ol ol    Tag key with 2 descendant selectors
        * #content ul ol    Tag key with 2 descendant selectors
        * #content ol ul    Tag key with 2 descendant selectors
        * #content tr th    Tag key with 2 descendant selectors
        * #content thead th    Tag key with 2 descendant selectors
        * #content tr td    Tag key with 2 descendant selectors
        * #content .entry-summary p:last-child    Tag key with 2 descendant selectors
        * .entry-content fieldset legend    Tag key with 2 descendant selectors
        * .home .sticky .page-link a    Tag key with 3 descendant selectors
        * .home #content .category-asides p    Tag key with 3 descendant selectors
        * .category-gallery .size-thumbnail img    Tag key with 2 descendant selectors
        * .attachment .entry-content .nav-previous a:before    Tag key with 3 descendant selectors
        * .attachment .entry-content .nav-next a:after    Tag key with 3 descendant selectors
        * #content .attachment img    Tag key with 2 descendant selectors
        * #content .wp-caption img    Tag key with 2 descendant selectors
        * #content .gallery img    Tag key with 2 descendant selectors
        * #content .gallery dl    Tag key with 2 descendant selectors
        * #content .gallery img    Tag key with 2 descendant selectors
        * #content .gallery br+br    Tag key with 2 descendant selectors
        * #content .attachment img    Tag key with 2 descendant selectors
        * #comments .comment-body ul    Tag key with 2 descendant selectors
        * #comments .comment-body ol    Tag key with 2 descendant selectors
        * #comments .comment-body p:last-child    Tag key with 2 descendant selectors
        * #comments .comment-body blockquote p:last-child    Tag key with 3 descendant selectors
        * .commentlist .children li    Tag key with 2 descendant selectors
        * #comments .pingback p    Tag key with 2 descendant selectors
        * #respond .form-allowed-tags code    Tag key with 2 descendant selectors
        * #respond .form-submit input    Tag key with 2 descendant selectors
        * .widget-area ul ul    Tag key with 2 descendant selectors
        * #wp-calendar thead th    Tag key with 2 descendant selectors
        * #wp-calendar tbody td    Tag key with 2 descendant selectors
        * .widget_rss .widget-title img    Tag key with 2 descendant selectors
        * #main .widget-area ul    Tag key with 2 descendant selectors
        * #main .widget-area ul ul    Tag key with 3 descendant selectors

Topic Closed

This topic has been closed to new replies.

About this Topic