Skip to content
View original post on X: GitHubOfficial· 16/100AI score16/100

GitHub rejects a ResizeObserver layout design over self-retriggering cost

AISummary

GitHub says it first gave every dynamic block a ResizeObserver that wrote measured heights back into the layout. It rejected that design because an observer writing heights into the layout it watches can retrigger itself, with cost growing as more blocks mount.

Post on XView on X
GitHubVerified on X
@github

Part of a thread · earlier post

For the first design, we gave every dynamic block a ResizeObserver that wrote measured heights back into the layout.

We built it, then rejected it. An observer that writes a height back into the layout it’s watching can retrigger itself, and the cost grows with every mounted block.

Source: GitHub · x.comPublished