Discover more from Can I DevTools?
Tips & Tricks #38
Can I find expensive CSS selectors?
In the Performance panel, Enable "advanced rendering instrumentation (slow)" in Settings.
Click Record, and perform the operation on the page that affects rendering.
In the recorded profile, identify a long style recalculation and select it in the waterfall view (“Main” section).
In the bottom tab bar, click Selector Stats. Sort the selectors based on Elapsed Time, Match Attempts etc., to identify expensive selectors.