Forced reflow - Performance bottleneck
See original GitHub issueHello 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.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:22
- Comments:19 (1 by maintainers)
Top Results From Across the Web
What is a Forced Reflow and How to Solve it? - Yonatan Kra
Force reflow (or Layout Reflow) is a major performance bottleneck. It happens when a measurement of the DOM happens after a DOM mutation....
Read more >Forced reflow is likely performance bottleneck - Stack Overflow
It says it's likely a performance issue because it takes time and it is synchronous. If you read, set, read, set, read, set...
Read more >What forces layout/reflow. The comprehensive list. · GitHub
This is also called reflow or layout thrashing, and is common performance bottleneck. Generally, all APIs that synchronously provide layout metrics will ...
Read more >Forced reflow is likely performance bottleneck - YouTube
CSS : Google DevTool Timeline: Forced reflow is likely performance bottleneck [ Beautify Your Computer ...
Read more >Layout Thrashing and Forced Reflows - Web Performance Tips
If you hover over one of these tasks, you'll see a warning stating: Forced reflow is a likely performance bottleneck.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m not a maintainer of this repository. I think your best bet is to
same issue