Avoiding HTML document reflows

前端 未结 3 895
独厮守ぢ
独厮守ぢ 2020-12-31 20:00

I have several hundred \"row\" elements like this:

3条回答
  •  悲&欢浪女
    2020-12-31 20:22

    This is a bit of an old question but I stumbled upon it when researching the issue and so I thought I would share what I found during my research for others.

    There is a pretty good library which helps you avoiding forced reflows, especially on larger applications: https://github.com/wilsonpage/fastdom.

    The idea of the library is to group reads and writes into separate phases.

提交回复
热议问题