Mastodon Feed: Post

Mastodon Feed

slightlyoff@toot.cafe ("Alex Russell") wrote:

The solution to these issues is always the same: learn the event loop, learn the DOM, learn what causes recalc and layout. Then apply discipline in your codebase about who's allowed to do what, while moving as many instances of these things to modern APIs that avoid layout (Resize Observer, Intersection Observer, etc.).