{"action":"created","issue":{"url":"https://api.github.com/repos/gopherjs/gopherpen/issues/3","labels_url":"https://api.github.com/repos/gopherjs/gopherpen/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/gopherjs/gopherpen/issues/3/comments","events_url":"https://api.github.com/repos/gopherjs/gopherpen/issues/3/events","html_url":"https://github.com/gopherjs/gopherpen/issues/3","id":110178842,"number":3,"title":"Try to improve example script initial code.","user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-07T08:50:59Z","updated_at":"2015-10-07T09:39:58Z","closed_at":null,"body":"Currently, the script in `index.html.tmpl` executes before the body, so trying to do any DOM operations in it will fail unless user delays them until DOMContentLoad event or equivalent.\r\n\r\nWe should arrange it so it script runs after body exists to make it friendlier."},"comment":{"url":"https://api.github.com/repos/gopherjs/gopherpen/issues/comments/146133403","html_url":"https://github.com/gopherjs/gopherpen/issues/3#issuecomment-146133403","issue_url":"https://api.github.com/repos/gopherjs/gopherpen/issues/3","id":146133403,"user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T09:39:58Z","updated_at":"2015-10-07T09:39:58Z","body":"I think it's best to go with one of the 2 solutions I proposed [here](https://gist.github.com/shurcooL/9004ed3bf2bbb62e68bd#gistcomment-1590462)."}}