optimization - CSS: Duplicate Selectors vs. Duplicate Declarations -
Which CSS writing techniques provide technology more efficiently:
1) The same style Repeat property
Example 1: Duplicate font-size, but less rule
Code> P {font-size: 1em; Color: # 000; } H1 {font-size: 1em; Color: #fff; }
or example 2: more rules but a font-size
p, h1 {font-size: 1em; } P {color: # 000; } H1 {color: #fff; }
This is the best source I found on this topic. I demonstrate that performance Duplicate property / value pairs are very bad:
< / P>
"Long" refers to Gregory as "bloated" format where the qualities are repetitive in many selectors.
Comments
Post a Comment