element-hq / element-hq/element-web

App spams console.log during execution, and especially during startup, affecting performance and making rageshakes useless

Open
#33,449 6 comments 0 reactions 1 assignee Claimed by @andybalaam View on GitHub
A-Developer-Experience A-Performance O-Frequent S-Major T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Open element
2. press ctrl+r
3. observe tens if not thouands of repeated messages
4. observe that Element takes well over a minute to start rendering content

### Outcome

#### What did you expect?
Seeing some debug info in console, app reloads quickly

#### What happened instead?
19:49:42.745 MatrixChat: handling action MatrixActions.Room.receipt
19:49:42.745 MatrixChat: handling action MatrixActions.Room.timeline
19:49:42.745 MatrixChat: handling action MatrixActions.Room.receipt
19:49:42.745 MatrixChat: handling action MatrixActions.Room.timeline
19:49:42.745 MatrixChat: handling action MatrixActions.Room.receipt
19:49:42.746 MatrixChat: handling action MatrixActions.Room.timeline
19:49:42.746 MatrixChat: handling action MatrixActions.Room.receipt
19:49:42.746 MatrixChat: handling action MatrixActions.Room.accountData
19:49:42.746 MatrixChat: handling action MatrixActions.Room
19:49:42.747 MatrixChat: handling action MatrixActions.Event.decrypted
19:49:42.748 MatrixChat: handling action MatrixActions.RoomState.events
19:49:42.749 MatrixChat: handling action MatrixActions.Room.myMembership
[...]

App takes well over a minute to reload, possibly due to console.log() being synchronous ontop of being overloaded by the rageshake code (which I can't even turn off?)

### Operating system

Linux (NixOS)

### Browser information

Firefox "mozilla-official - 1.0" 150.0

### URL for webapp

app.element.io

### Application version

Element version: 1.12.17 Crypto version: Rust SDK 0.16.0 (00b9b6d), Vodozemac 0.9.0

### Homeserver

Synapse 1.152.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.