CSS selector performance breakdown ⇝

  Wynn Netherland • 2011-09-22

Interesting observations from Harry Roberts regarding CSS selector performance:

From this we can see that the difference between IDs/classes and types/descendants is fairly huge… The difference between themselves is slight.

Most of the performance boosts are negligible for most sites, but good tips to keep in mind when writing CSS selectors in general.

Linked from:

Wynn Netherland
Wynn Netherland

VP of Engineering at Abstract, team builder, DFW GraphQL meetup organizer, platform nerd, author, and Jesus follower.