If you type fast in a trello board, or just hold a key, the input is getting laggier and laggier over time until it grinds to a halt.
I tried to profile it in the dev tools, seems like all time is spent executing some javascript in response to `keydown` event:
Notice that every keypress seems to add a node and a listener - that looks like a bug.
I managed to track this down to a call to this function - the callback in useCallback seems to be called hundreds of times per single keypress:
Seems to be recent and scale somewhat linearly with the amount of cards on the board. It's not noticable if I just open a board, but once I scroll to the right and more cards load, typing becomes extrmely laggy.
---
note that I tried to report this through the support form but it didn't load any form that I could fill in
Not sure what happened, but the performance has slightly improved today. Either way, the function is still called more than 1000 time per single keystroke and dev tools still show a lot of JS activity and droped frames
Hmm...weird! I also profiled my typing in the DevConsole but it seemed to call keydown only as many times as the actual character was pressed. I have not seen this behavior in the browser version. Then again, I'm on the beta.
However, I actually have seen this kind of behavior in the mobile app version...
I'm going to look deeper into this on my end. In the meantime, is THIS the form you used to make the report?
Make sure you select the selection related to technical issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes - if I select technical issues and trello, there's just a link to docs and this forum:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.