CodeMirror feels slow on Android WebView on budget/older device, any way to offload parsing or heavy work?

I’m using CodeMirror inside Android WebView for a mobile-only code editor.

It works well on good phones with minimal extensions, but on older or budget Android devices it can feel less smooth and less snappy, especially after adding few extensions.

One way to reproduce the issue is to open the CodeMirror playground on Android, connect Chrome DevTools, and enable CPU throttling around 6x or 4x. Editing and scrolling then start to feel noticeably slower.

I understand that CodeMirror avoids using Web Workers internally to keep things less error prone.

Still, I wanted to ask: is there any recommended way to make parsing or other heavy extension work more asynchronous, or move some of it to a Web Worker?

Any examples, resources for improving performance on low-end Android WebView devices would be helpful.

Thanks!

No, there is no way to move work to a web worker. Apart from disabling extensions (including parsing), there’s not much I can suggest.