nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
553 stars 91 forks source link

Long documents slow Chrome/Chromium to a halt #5819

Open netzpolitikorg opened 5 months ago

netzpolitikorg commented 5 months ago

While longer markdown documents are not super fast in any browser, there seems to be an overlap of performance-eating bugs or circumstances when opening long (>1000 lines) markdown files.

To Reproduce Steps to reproduce the behavior:

  1. Create a files with a variety of headlines, plain-text, and lists with sub-lists that is at least 10000 lines long. It doesn't have to be particular complicated, but long.
  2. Open it in Chromium.
  3. Wait a long time for it to render at all.
  4. Wait a few seconds every time you try to scroll or edit the document.

Expected behavior A maybe slow, but not unusable document.

Server details:

Client details:

Logs #### Nextcloud log (data/nextcloud.log) No related server-side logs. This issue appears to be entirely client-side. #### Browser log Console and Network tab are pretty quiet, but the Performance tab shows a lot of activity. We can provide the corresponding json file if this issue can't be reproduced by anyone else.
mejo- commented 5 months ago

If this only happens in Chromium (not Firefox), maybe it's related to https://github.com/nextcloud/server/issues/44122, which hopefully will be fixed soon (there's already PRs in review to fix it).

netzpolitikorg commented 5 months ago

Ok. We don't use the dashboard, but we're happy to wait and test after the PR is released :green_heart:

max-nextcloud commented 5 months ago

I just tried to reproduce this copying the longest good wikipedia article into a text document. It showed a number of issues:

edit: Some of this is probably due to inconsistencies in data format. For example it looks like we expect our images to have some alt attribute but the pasted ones do not have any: image

helmo commented 1 month ago

I'm also seeing slowdowns in Chrome, while Firefox works fine. The markdown filesize is about 180kb. I've mitigated it for now by splitting it into multiple files.

This is on nextcloud 29.0.7

This issue seems related to #908