Skip to content

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Nov 27, 2025

Purpose

During investigations about some users having theirs docs quite slow, we found a method that slow down a lot the users typing on a big documents.

Proposal

  • We are improving the way we listen a upload to avoid this methods.
  • We are improving the listeners on the table of content to listen only when necessary, we added a debounce as well.
  • We fixed a bug on the "Table of Content" about stickiness blocked after a page bigger that 100vh.

- the Table of Contents stickiness now covers the
full height of the viewport, before it was limited to
100vh
- we listen the scroll to highlight the heading
in the Table of Contents only when the Table of Contents
is open
- We debounce the editor change to avoid excessive updates
to the Table of Contents
@AntoLC AntoLC self-assigned this Nov 27, 2025
@AntoLC AntoLC added bug Something isn't working enhancement improve an existing feature frontend labels Nov 27, 2025
@AntoLC AntoLC changed the title Enhance/hooks editors - ⚡️(frontend) improve performance on some hooks Nov 27, 2025
@AntoLC AntoLC changed the title - ⚡️(frontend) improve performance on some hooks - ⚡️(frontend) improve performance on upload and table of contents Nov 27, 2025
@AntoLC AntoLC changed the title - ⚡️(frontend) improve performance on upload and table of contents - ⚡️(frontend) improve perf on upload and table of contents Nov 27, 2025
@AntoLC AntoLC force-pushed the enhance/hooks-editors branch from 8cb92fa to e608769 Compare November 27, 2025 17:01
@AntoLC AntoLC requested a review from Ovgodd November 27, 2025 17:01
@AntoLC AntoLC changed the title - ⚡️(frontend) improve perf on upload and table of contents (frontend) improve perf on upload and table of contents Nov 28, 2025
@AntoLC AntoLC changed the title (frontend) improve perf on upload and table of contents ⚡️(frontend) improve perf on upload and table of contents Nov 28, 2025
We notices that `context.getChanges` was very
greedy, on a large document with multiple
users collaborating, it caused performance issues.
We change the way that we track a upload by
listening onUploadEnd event instead of tracking
all changes in the document.
When a doc opens, we check if there are any ongoing
uploads and resume them.
We fix as well a race condition that could happen
when multiple collaborators were on a document
during an upload.
@AntoLC AntoLC force-pushed the enhance/hooks-editors branch from e608769 to 9cea74d Compare November 28, 2025 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement improve an existing feature frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants