> I just ran google's speed test on one of my pages and it reports many
> "inefficient" rules. They are all of the form:
>
> div#footer p
>
> Is google telling me that the 'div' part is not necessary and that it
> slows processing?

Most likely. Since an ID is unique to a document, the element type is redundant.

For smaller sites, I prefer to keep the element type in my selectors
to make the code more human readable when I look at it 6 months later.
For large sites, I usually optimize for performance by removing the
element type.
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to