Last modified: 2014-11-13 12:07:57 UTC
Quoth Roan, OOJS-UI creates and measures a clone of the textarea on every keyup event. That's just silly. I don't know what the best solution is, here, but maybe start by debouncing the events, then maybe move on to a better measuring/dimension-guessing method.
(In reply to Mark Holmquist from comment #0) > Quoth Roan, OOJS-UI creates and measures a clone of the textarea on every > keyup event. That's just silly. > > I don't know what the best solution is, here, but maybe start by debouncing > the events, then maybe move on to a better measuring/dimension-guessing > method. I very vaguely recall this being something to do with browser compatibility, but maybe it's all an hallucination.
Indeed on some level it is - I used this method to fix UW's auto-resize ability. But I think there are avenues to making it faster that don't require losing compatibility.