the frontend is slow because every keystroke triggers a state update at the Editor component, for two reasons:

to avoid this, we should not lift the local_code state all the way up, but only the code_differs flag. And only notify Editor when it changed.

for docs, we can use new CustomEvent("love_docs_please") on window instead of an Editor state

(when we remove the codemirror, we only detach it from dom. We should stop removing codemirrors because it is useless)