CSS selector performance
It turns out that with large websites and stylesheets, parsing many
element-attribute selectors like div[data-v-foo]
is much slower than
parsing many class-attr selectors like .cool-btn[data-v-foo]
, so
prefer the class-attr selector style when possible.
View some Performance test results.