Typing in Trello text boxes started to be very slow

Matyáš Racek February 6, 2025

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:

trello-profile.png

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:

trello-source.png

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

2 answers

0 votes
Matyáš Racek February 8, 2025

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

0 votes
DiMaggio Tucci
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2025

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?

 

support.atlassian.com/contact

 

Make sure you select the selection related to technical issues.

Matyáš Racek February 6, 2025

Yes - if I select technical issues and trello, there's just a link to docs and this forum:


attlassian-support.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events