element-hq / element-hq/element-web

Input new message is sometimes very slow (blocking for some seconds)

Open
#21,612 4 comments 4 reactions 0 assignees View on GitHub
A-Composer A-E2EE A-Performance good first issue Hacktoberfest Help Wanted O-Occasional S-Major T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Type a new message.

### Outcome

#### What did you expect?
The message appears immediately while typing.

#### What happened instead?
The page blocks and the message appears seconds after typing.

The keydown event handler ist blocking for several seconds, caused by getDevicesInRoom(). Please find attached a screenshot of the performance inspector.

![element-input-slow](https://user-images.githubusercontent.com/91094750/160999757-d0d9c360-725d-4c7f-87c9-0ca5632b3455.png)

### Operating system

Linux

### Browser information

Version 99.0.4844.74 (Official Build) (64-bit)

### URL for webapp

_No response_

### Application version

Element Version: 1.10.7 Olm Version: 3.2.8

### Homeserver

Synapse 1.55.0

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.