{"action":"opened","issue":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/654","labels_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/654/labels{/name}","comments_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/654/comments","events_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/654/events","html_url":"https://github.com/GitbookIO/gitbook/issues/654","id":62550624,"number":654,"title":"markdown preview performance","user":{"login":"lookfirst","id":85355,"avatar_url":"https://avatars.githubusercontent.com/u/85355?v=3","gravatar_id":"","url":"https://api.github.com/users/lookfirst","html_url":"https://github.com/lookfirst","followers_url":"https://api.github.com/users/lookfirst/followers","following_url":"https://api.github.com/users/lookfirst/following{/other_user}","gists_url":"https://api.github.com/users/lookfirst/gists{/gist_id}","starred_url":"https://api.github.com/users/lookfirst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lookfirst/subscriptions","organizations_url":"https://api.github.com/users/lookfirst/orgs","repos_url":"https://api.github.com/users/lookfirst/repos","events_url":"https://api.github.com/users/lookfirst/events{/privacy}","received_events_url":"https://api.github.com/users/lookfirst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T00:40:22Z","updated_at":"2015-03-18T00:40:22Z","closed_at":null,"body":"If you put a lot of images on a page in the browser version of the editor, the performance of the page slows down considerably.\r\n\r\nIt appears as though one issue around the preview is that it redraws the entire DOM for the preview every single time a key is pressed.\r\n\r\nInstead of redrawing the entire DOM every time, how about employing a diff/patch system like what React does? One idea would be to use [virtual-dom](https://github.com/Matt-Esch/virtual-dom#diff-computation) to do this.\r\n\r\nI'd submit a pull request, but I can't seem to find the online editor source code. I found the desktop app, but that appears to be another version of the codebase.\r\n"}}