Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 777 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 777 Bytes

CSS selector performance bench

This app contains a demo usages of different types of CSS selectors to show the performance impact of them. Each example has:

  • Bad example - selector that can incur cost
  • Good example - applying style rules directly on elemnts using CSS classes

Start

Usage

The examples follow a consistent pattern to help with profiling. Each example has a single toggle button that performs some kind of CSS/DOM mutation that should be profiled to check the affected elements and selector matching in a performance profile.

Each scenario has a README that describes the intention behind the example and what the impacts are.

Each example is located under the src/scenarios folder.