Page MenuHomePhabricator

Kill slow MutationObserver stuff in TextInputWidget
Closed, ResolvedPublic


All the MutationObserver stuff in TextInputWidget, which calls #adjustSize for autosized inputs after they're inserted into the document, is slow. There is some overhead for creating the MutationObserver, it (probably) slows down DOM operations a little bit, the handler for it is executed with some delay, and when building an interface with many TextInputWidgets, each of them runs separately and causes a separate reflow when #adjustSize is called. We really should find a way to do this less often, or not at all.