{"action":"opened","issue":{"url":"https://api.github.com/repos/Shopify/turbograft/issues/75","labels_url":"https://api.github.com/repos/Shopify/turbograft/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/turbograft/issues/75/comments","events_url":"https://api.github.com/repos/Shopify/turbograft/issues/75/events","html_url":"https://github.com/Shopify/turbograft/issues/75","id":58266420,"number":75,"title":"Including TurboGraft via <script> in the body is painful and confusing","user":{"login":"qq99","id":150352,"avatar_url":"https://avatars.githubusercontent.com/u/150352?v=3","gravatar_id":"","url":"https://api.github.com/users/qq99","html_url":"https://github.com/qq99","followers_url":"https://api.github.com/users/qq99/followers","following_url":"https://api.github.com/users/qq99/following{/other_user}","gists_url":"https://api.github.com/users/qq99/gists{/gist_id}","starred_url":"https://api.github.com/users/qq99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qq99/subscriptions","organizations_url":"https://api.github.com/users/qq99/orgs","repos_url":"https://api.github.com/users/qq99/repos","events_url":"https://api.github.com/users/qq99/events{/privacy}","received_events_url":"https://api.github.com/users/qq99/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shopify/turbograft/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-19T20:39:22Z","updated_at":"2015-02-19T20:39:22Z","closed_at":null,"body":"1.  Include TurboGraft client code inside the `<body>` via `<script>`.  People may do this to decrease render blocking, or for other reasons\r\n2.  When doing page transitions, Turbolinks tries to evaluate new JS inside the body\r\n3.  TurboGraft gets re-initialized\r\n4.  `tg-remote` handlers get bound _N_ times for every page you change\r\n\r\nWorkaround:  add `data-turbolinks-eval=\"false\"` to your node"}}