Layout thrashing occurs when we perform a series of consec-utive reads and writes to DOM, in the process not allowing the browser to perform lay-out optimizations. — ninja

频繁的读写 dom,不让浏览器做 layout 优化 就会出现 layout thrash

参考文档:Avoid Large, Complex Layouts and Layout Thrashing

Last Updated: