4 ms·
Can you shed some light on why something like Google Docs is able to operate this way but not experience the lag or latency that your app does?
by jklinger410 4y ago
Can you shed some light on why something like Google Docs is able to operate this way but not experience the lag or latency that your app does?
- jitl 4y agoTyping latency in Notion is generally worse than Google Docs because our renderer & input handling is less efficient than Docs. Docs has substantial lead over Coda, Notion, Dropbox Paper, etc because they use a custom layout engine for presentation that is entirely separate from the input surface. Notion, Paper, etc instead use the Web’s built-in but flawed API for rich text editing called “ContentEditable”. In ContentEditable, generally the rendered output DOM nodes are also the input surface. This is much less expensive to implement, but comes with a bunch of limitations and constraints.
- jklinger410 4y agoThank you for the response, it was very illuminating. Is the reason you choose the built-in API instead of building a custom layout engine just due to complexity?