by codedokode · 5y ago · 0 comments
Layout change happens even as you as much as glance at a web page. See e.g. https://csstriggers.com Also things like getting the size or offset of an element would cause a layout recalculation (I don't know if it's still the case).
Firefox does not do this, and has smooth scrolling as a result with little CPU load.
Sometimes some optimizations just don't work out.