Forced reflow - Performance bottleneck
- Lingua principale
- JavaScript
- Stelle
- 11.9k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello akiran,
The slider has been an amazing addition for many projects of ours. Thank you.
We were trying to optimize all our apps using several metrics.
A case in which the slider seems to trigger expensive forced reflow of our layouts which is impacting the performance on a huge scale.
We wanted to know if it is such that this issue can be fixed or our implementation of it is not the optimal in a way.
- helpers.js
`getWidth: function getWidth(elem) {
return elem && (elem.getBoundingClientRect().width || elem.offsetWidth) || 0;
},`
Can this be optimized?


Thank you for your time.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.