{"action":"created","issue":{"url":"https://api.github.com/repos/benmcmorran/coursery/issues/4","labels_url":"https://api.github.com/repos/benmcmorran/coursery/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/benmcmorran/coursery/issues/4/comments","events_url":"https://api.github.com/repos/benmcmorran/coursery/issues/4/events","html_url":"https://github.com/benmcmorran/coursery/pull/4","id":67373245,"number":4,"title":"Use HTML DOM Node functions instead of Strings","user":{"login":"evinugur","id":1807752,"avatar_url":"https://avatars.githubusercontent.com/u/1807752?v=3","gravatar_id":"","url":"https://api.github.com/users/evinugur","html_url":"https://github.com/evinugur","followers_url":"https://api.github.com/users/evinugur/followers","following_url":"https://api.github.com/users/evinugur/following{/other_user}","gists_url":"https://api.github.com/users/evinugur/gists{/gist_id}","starred_url":"https://api.github.com/users/evinugur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evinugur/subscriptions","organizations_url":"https://api.github.com/users/evinugur/orgs","repos_url":"https://api.github.com/users/evinugur/repos","events_url":"https://api.github.com/users/evinugur/events{/privacy}","received_events_url":"https://api.github.com/users/evinugur/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-09T14:22:56Z","updated_at":"2015-04-15T19:18:52Z","closed_at":"2015-04-15T01:22:43Z","pull_request":{"url":"https://api.github.com/repos/benmcmorran/coursery/pulls/4","html_url":"https://github.com/benmcmorran/coursery/pull/4","diff_url":"https://github.com/benmcmorran/coursery/pull/4.diff","patch_url":"https://github.com/benmcmorran/coursery/pull/4.patch"},"body":"Saw this program on /r/wpi and it ended up being really helpful :+1: \r\n\r\nWriting HTML Strings in JavaScript is a lot slower since the DOM has to parse the HTML and then  add it to the Document tree. Functions like `createElement` and `appendChild` are heavily optimized and skip the entire parsing step since it's clear to the browser exactly what the intent is. \r\n\r\nThis is beneficial because this program is populated from a particularly large JSON file. After deploying and running both versions of the site this loads the actual interface a lot faster. \r\n\r\nThere are other areas of the code where using this style of HTML creation would be a lot faster (particularly the rendering of the table) however that fix is more dependent on your implementation of the program and I figured it'd be best to let you make a decision on that. However creating `<tr>` and `<td>`s with this method will drastically lower rendering/processing times given the large size of the JSON source file.\r\n\r\nFood for thought. Thanks again for the helpful service."},"comment":{"url":"https://api.github.com/repos/benmcmorran/coursery/issues/comments/93537102","html_url":"https://github.com/benmcmorran/coursery/pull/4#issuecomment-93537102","issue_url":"https://api.github.com/repos/benmcmorran/coursery/issues/4","id":93537102,"user":{"login":"evinugur","id":1807752,"avatar_url":"https://avatars.githubusercontent.com/u/1807752?v=3","gravatar_id":"","url":"https://api.github.com/users/evinugur","html_url":"https://github.com/evinugur","followers_url":"https://api.github.com/users/evinugur/followers","following_url":"https://api.github.com/users/evinugur/following{/other_user}","gists_url":"https://api.github.com/users/evinugur/gists{/gist_id}","starred_url":"https://api.github.com/users/evinugur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evinugur/subscriptions","organizations_url":"https://api.github.com/users/evinugur/orgs","repos_url":"https://api.github.com/users/evinugur/repos","events_url":"https://api.github.com/users/evinugur/events{/privacy}","received_events_url":"https://api.github.com/users/evinugur/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T19:18:52Z","updated_at":"2015-04-15T19:18:52Z","body":"Cool, thank you!"}}