Find us at BrightonSEO 25/26 April - STAND 18! Fill your swag bag!

Dealing with Front-end issues?

Crawl your website with Sitebulb for 300+ tech SEO checks

Try for Free

This Hint has been deprecated, and we no longer consider it best practice. In order to get the most accurate audit results from Sitebulb, please ensure you update to the latest version.

Medium This Hint is worth investigating further, and may warrant further attention depending on the type and quantity of URLs affected. Issue This Hint represents an error or problem that needs to be fixed.

CSS contains overqualified selectors

This means that the URL in question is a CSS file that contains one or more overqualified selectors.

Why is this important?

Overqualified selectors make the browser work harder than it needs to and uses up its time; by using unnecessary qualifiers on selectors you just increase byte count for no material gain.

What does the Hint check?

This Hint will trigger for any internal or external CSS URL which contains selectors that use an element and a class name together.

Examples that trigger this Hint:

The Hint would trigger for any style sheet that contain selectors with unnecessary qualifiers:

div.mybox {
color: red;
}

.mybox li.active {
background: red;
}

How do you resolve this issue?

You can make your selectors leaner and more performant by cutting the unnecessary bits out. In most cases, it's safe to remove the element name from the selector, both reducing the size of the CSS as well as improving the selector performance (doesn't have to match the element anymore). Removing the element name also loosens the coupling between your CSS and your HTML, allowing you to change the element on which the class is used without also needing to update the CSS.

Further Reading

Sitebulb Desktop

Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.

  • Ideal for SEO professionals, consultants & marketing agencies.

Sitebulb Cloud

Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.

  • Perfect for collaboration, remote teams & extreme scale.