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
Click "Addom" to open the console and check the console output
` run loop 10000 begin 1683368575551 run loop 10000 end 1217ms `
10,000 nodes require 1200ms to render
Check the time consumption time consumption time is checked by the performance tools in Devtool, and sorted in the time consumption.
Time (μs)
Quickly reject count
Matching attempt
Matching count
Selector
767044
0
10000
0
a [nz-tab-link] ~ *
2738
0
9999
9999
DIV
2610
0
10000
0
span.ant-radio *
1955
0
10000
9999
DIV [_ngContent-GCQ-C44]
Discover a [nz-tab-link] ~ *This style occupies most of the calculation time
What is exfected?
When a large number of DOM adds a [nz-tab-link] ~ *Don't have so much impact on performance, it is not much different from other ordinary global styles.
What is actually happy?
a [nz-tab-link] ~ * occupies most of the CSS calculation time consumption time consumption
Activity
zorro-bot commentedon May 6, 2023
Translation of this issue:
The global style in the tabs component A [nz-tab-link] ~*{positive: related
REPRODUCTION LINK
[https://codesandbox.io/s/angular15-norro -NTD-tabs-Component-Performance-Test-2FVFB5> (https://angular15-zorro-an TD- TABS-COMPONENT-CSS-PERFORMANCE-TEST-2FVFB5)
STEPS To Reproduce
After the project starts, turn on the address https://2fvfb5.csb.app/
Click "Addom" to open the console and check the console output
` run loop 10000 begin 1683368575551 run loop 10000 end 1217ms`10,000 nodes require 1200ms to render
Check the time consumption time consumption time is checked by the performance tools in Devtool, and sorted in the time consumption.
Discover a [nz-tab-link] ~ *This style occupies most of the calculation time
What is exfected?
When a large number of DOM adds a [nz-tab-link] ~ *Don't have so much impact on performance, it is not much different from other ordinary global styles.
What is actually happy?
a [nz-tab-link] ~ * occupies most of the CSS calculation time consumption time consumption
| ENVIRONMENT | Info |
| --- | --- | |
| NG-Zorro-ATD | 15.1.0 |
| Browser | Microsoft Edge@112.0.1722.68 |
perf(module:tabs): need add .ant-tabs-tab class reduce css computing …
perf(module:tabs): need add .ant-tabs-tab class reduce css computing …
doxingg commentedon Jun 16, 2023
fixed by #7936