yuanqing/line-clamp

Lots of forced reflows

Hypnosphi opened this issue · 0 comments

image

Those are caused by interleaving mutations and measurements in a loop
Unfortunately, I don't know how to fix this without making clamp asynchronous. If you're OK with such a change in the next major version, fastdom library maybe of a good help

https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing#avoid_layout_thrashing