Poor CSS performance for long documents #6815
Unanswered
Laci556
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! We're integrating TipTap into our application and ran into some performance issues. We are dealing with long documents (about 50-200 pages) and simply editing inside paragraphs is fine, but adding newlines or deleting them causes massive lag spikes (the rendering takes 40-50ms for a 90 page doc).
We are using React with TailwindCSS. The React component itself doesn't rerender, and we've stripped away every other element from the page. When a new DOM element is added (e.g. empty
p
tag on pressing return) the whole editor needs to be repainted which causes the lag. It's most likely an issue with ProseMirror, but I wanted to see if anyone else has faced similar bottlenecks / how are you dealing with long documents? The 200k word example on TipTap's page is impressive, but it doesn't use any extensions other than StarterKit and has no styling.Beta Was this translation helpful? Give feedback.
All reactions