{"action":"created","issue":{"url":"https://api.github.com/repos/rails/turbolinks/issues/511","labels_url":"https://api.github.com/repos/rails/turbolinks/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/rails/turbolinks/issues/511/comments","events_url":"https://api.github.com/repos/rails/turbolinks/issues/511/events","html_url":"https://github.com/rails/turbolinks/issues/511","id":69320635,"number":511,"title":"Permanent nodes with iframes are reloaded","user":{"login":"ruigomeseu","id":5658301,"avatar_url":"https://avatars.githubusercontent.com/u/5658301?v=3","gravatar_id":"","url":"https://api.github.com/users/ruigomeseu","html_url":"https://github.com/ruigomeseu","followers_url":"https://api.github.com/users/ruigomeseu/followers","following_url":"https://api.github.com/users/ruigomeseu/following{/other_user}","gists_url":"https://api.github.com/users/ruigomeseu/gists{/gist_id}","starred_url":"https://api.github.com/users/ruigomeseu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruigomeseu/subscriptions","organizations_url":"https://api.github.com/users/ruigomeseu/orgs","repos_url":"https://api.github.com/users/ruigomeseu/repos","events_url":"https://api.github.com/users/ruigomeseu/events{/privacy}","received_events_url":"https://api.github.com/users/ruigomeseu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-18T15:43:41Z","updated_at":"2015-07-20T14:52:46Z","closed_at":"2015-04-19T19:04:28Z","body":"I have a very simple test node with a Youtube player that should be playing throughout all pages of my website:\r\n\r\n```html\r\n<body>\r\n<div id=\"player\" style=\"position:fixed; top: 0; left: 0; z-index: 1000000;\" data-turbolinks-permanent>\r\n  <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/dz2iNkqFoKo\" frameborder=\"0\" allowfullscreen></iframe>\r\n</div>\r\n<div>\r\nRest of the site\r\n</div>\r\n</body>\r\n```\r\n\r\nWhen I change pages the iframe gets reloaded, wish shouldn't happen after the #479 fix. "},"comment":{"url":"https://api.github.com/repos/rails/turbolinks/issues/comments/122909576","html_url":"https://github.com/rails/turbolinks/issues/511#issuecomment-122909576","issue_url":"https://api.github.com/repos/rails/turbolinks/issues/511","id":122909576,"user":{"login":"Thibaut","id":17579,"avatar_url":"https://avatars.githubusercontent.com/u/17579?v=3","gravatar_id":"","url":"https://api.github.com/users/Thibaut","html_url":"https://github.com/Thibaut","followers_url":"https://api.github.com/users/Thibaut/followers","following_url":"https://api.github.com/users/Thibaut/following{/other_user}","gists_url":"https://api.github.com/users/Thibaut/gists{/gist_id}","starred_url":"https://api.github.com/users/Thibaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thibaut/subscriptions","organizations_url":"https://api.github.com/users/Thibaut/orgs","repos_url":"https://api.github.com/users/Thibaut/repos","events_url":"https://api.github.com/users/Thibaut/events{/privacy}","received_events_url":"https://api.github.com/users/Thibaut/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T14:52:46Z","updated_at":"2015-07-20T14:52:46Z","body":"> Why move the node at all, though?\r\n\r\nBecause we're replacing a parent of the permanent node (the `<body>`). When that happens, we need to move the node from its old parent (which was removed from the DOM) to its new parent.\r\n\r\n> The only node that should be affected is the div containing rest of the site.\r\n\r\nThat div is the `<body>`. Turbolinks doesn't let you specify a custom container. If this is your use case, check out `jquery-pjax`."}}