Open
Description
If you try to view a very large file on the share server it is rendered statically using CodeMirror for the markup, then react. This can be slow. I wonder if it is possible to render instead using virtuoso, so only a window of the document is displayed at a given time? I don't know. Basically, use react-virtuoso for the windowing instead of codemirror itself (which is maybe too heavyweight?). Alternatively, we could just end up using normal codemirror (loaded via https://nextjs.org/docs/advanced-features/dynamic-import).