{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react/issues/4790","labels_url":"https://api.github.com/repos/facebook/react/issues/4790/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/4790/comments","events_url":"https://api.github.com/repos/facebook/react/issues/4790/events","html_url":"https://github.com/facebook/react/issues/4790","id":104915385,"number":4790,"title":"Suggestion: Increase performance by providing an initial virtual-dom similar to linux init ram image","user":{"login":"sjoerd222888","id":10337756,"avatar_url":"https://avatars.githubusercontent.com/u/10337756?v=3","gravatar_id":"","url":"https://api.github.com/users/sjoerd222888","html_url":"https://github.com/sjoerd222888","followers_url":"https://api.github.com/users/sjoerd222888/followers","following_url":"https://api.github.com/users/sjoerd222888/following{/other_user}","gists_url":"https://api.github.com/users/sjoerd222888/gists{/gist_id}","starred_url":"https://api.github.com/users/sjoerd222888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjoerd222888/subscriptions","organizations_url":"https://api.github.com/users/sjoerd222888/orgs","repos_url":"https://api.github.com/users/sjoerd222888/repos","events_url":"https://api.github.com/users/sjoerd222888/events{/privacy}","received_events_url":"https://api.github.com/users/sjoerd222888/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-04T15:40:33Z","updated_at":"2015-09-04T16:24:49Z","closed_at":"2015-09-04T16:24:49Z","body":"I have a suggestion where I am not really sure whether this functionality already exists but I think it does not yet. Also I am not really sure whether the proposed mechanism would indeed improve the performance of react.\r\n\r\nAccording to my understanding the virtual-dom is created by reactjs on application load. If applications are large the virtual dom creating can consume some time. If the virtual dom could be provided by the server already similar to init ram images used in linux the init performance could possibly be increased. In some cases the init dom 'image' (probably provided as json) would be static but there might be cases where this does not work. There would be plenty of options of how to prepare this on server side.\r\n\r\nBut if indeed the transmission of a virtual dom image would be slower than creating it from scratch on client side it does not make sense. In case it depends on network speed it could also be an option that the client starts to build the dom and abandons the virtual dom creation process when the image is received from the server. In the other case the request would be canceled.\r\n\r\nI hope this makes sense. I am not a user of react but in a conference discussion with developers that use react the idea was accepted that is why I now propose it here."}}