You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Record a performance trace with Selector Stats enabled
32
32
33
-
To view the statistics of your CSS rule selectors during long-running **Recalculate Style** events, first record a performance trace with the Selector Stats feature enabled. You enable the Selector Stats feature by selecting the **Enable CSS selector stats** checkbox, which displays the **Selector Stats** tab.
33
+
To view the statistics of your CSS rule selectors during long-running **Recalculate Style** events, first record a performance trace with the Selector Stats feature enabled. You enable the Selector Stats feature by selecting the **Enable CSS selector stats (slow)** checkbox, which displays the **Selector stats** tab.
34
34
35
35
The Selector Stats feature isn't always enabled, because it adds more overhead to your performance recordings. You should only leave it turned on when you need to investigate the performance of **Recalculate Style** events and other rendering information.
36
36
@@ -44,7 +44,7 @@ To record a performance trace with selector statistics:
44
44
45
45
1. In the **Performance** tool, click the **Capture settings** () button.
46
46
47
-
1. Select the **Enable CSS selector stats** checkbox:
47
+
1. Select the **Enable CSS selector stats (slow)** checkbox:
48
48
49
49

50
50
@@ -83,7 +83,7 @@ The **Selector Stats** tab in the **Performance** tool contains a table of CSS s
83
83
| **Selector** | The CSS selector that was matched. |
84
84
| **Style Sheet** | The CSS style sheet that contains the CSS selector. |
85
85
86
-
When finished, in the **Performance** tool, click the **Capture settings** () button, and then clear the **Enable CSS selector stats** checkbox.
86
+
When finished, in the **Performance** tool, click the **Capture settings** () button, and then clear the **Enable CSS selector stats (slow)** checkbox.
@@ -105,7 +105,7 @@ To view aggregate statistics of the CSS rule selectors that are involved in mult
105
105
106
106
1. Repeat the previous steps with the other **Recalculate Style** events you're interested in.
107
107
108
-
When finished, in the **Performance** tool, click the **Capture settings** () button, and then clear the **Enable CSS selector stats** checkbox.
108
+
When finished, in the **Performance** tool, click the **Capture settings** () button, and then clear the **Enable CSS selector stats (slow)** checkbox.
@@ -123,7 +123,7 @@ To view aggregate statistics of the CSS rule selectors that are involved in the
123
123
124
124

125
125
126
-
When finished, in the **Performance** tool, click the **Capture settings** () button, and then clear the **Enable CSS selector stats** checkbox.
126
+
When finished, in the **Performance** tool, click the **Capture settings** () button, and then clear the **Enable CSS selector stats (slow)** checkbox.
Copy file name to clipboardExpand all lines: microsoft-edge/devtools/whats-new/2024/05/devtools-125.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ todo video
26
26
27
27
<!-- Subtitle: Use the "Enable CSS selector stats" setting instead of the "Enable advanced rendering instrumentation (slow)" to capture CSS selector statistics for Recalculate Style events-->
28
28
29
-
In the **Performance** tool, the **Enable advanced rendering instrumentation (slow)** checkbox has been replaced by the **Enable CSS selector stats** checkbox. This checkbox controls the CSS selector statistics feature.
29
+
In the **Performance** tool, the **Enable advanced rendering instrumentation (slow)** checkbox has been replaced by the **Enable CSS selector stats** checkbox. (Update: As of Edge 140, the checkbox label is **Enable CSS selector stats (slow)**, and the checkboxes are on the right.) This checkbox controls the CSS selector statistics feature.
title: What's New in DevTools (Microsoft Edge 140)
3
+
description: Invalidation count in CSS selector stats, in the Performance tool. Emulate the 'Save-Data' header in Network conditions. And more. # key words before col 158
4
+
author: MSEdgeTeam
5
+
ms.author: msedgedevrel
6
+
ms.topic: conceptual
7
+
ms.service: microsoft-edge
8
+
ms.subservice: devtools
9
+
ms.date: 09/04/2025
10
+
---
11
+
# What's New in DevTools (Microsoft Edge 140)
12
+
13
+
These are the latest features in the Stable release of Microsoft Edge DevTools.
<!-- Subtitle: Identify expensive selectors with the new column in CSS selector stats (Performance tool) to reduce costly style recalculations. -->
20
+
21
+
In the **Performance** tool, the CSS **Selector stats** tab's table has a new column: **Invalidation count**. The **Invalidation count** column shows an aggregated count of DOM nodes that are matched by a CSS selector that were invalidated and had their style recalculated. A DOM node can be invalidated multiple times, by multiple CSS selectors.
22
+
23
+
During a recalculate style event, the browser may invalidate many DOM nodes, based on a given CSS selector. Inefficient CSS selectors can impact your webpage's performance. If you have high style-recalculation costs, that might be caused by over-invalidation. You can use this new insight to identify CSS selectors that have a high invalidation count, and reduce over-invalidation by refining your CSS style rules.
24
+
25
+

26
+
27
+
See also:
28
+
* [Analyze CSS selector performance during Recalculate Style events](../../../performance/selector-stats.md)
0 commit comments