{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/465","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/465/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/465/events","html_url":"https://github.com/Polymer/polymer/issues/465","id":30794230,"number":465,"title":"Firefox doesn't load script in template","user":{"login":"JanMiksovsky","id":86139,"avatar_url":"https://avatars.githubusercontent.com/u/86139?v=3","gravatar_id":"","url":"https://api.github.com/users/JanMiksovsky","html_url":"https://github.com/JanMiksovsky","followers_url":"https://api.github.com/users/JanMiksovsky/followers","following_url":"https://api.github.com/users/JanMiksovsky/following{/other_user}","gists_url":"https://api.github.com/users/JanMiksovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/JanMiksovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanMiksovsky/subscriptions","organizations_url":"https://api.github.com/users/JanMiksovsky/orgs","repos_url":"https://api.github.com/users/JanMiksovsky/repos","events_url":"https://api.github.com/users/JanMiksovsky/events{/privacy}","received_events_url":"https://api.github.com/users/JanMiksovsky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/0.5","name":"0.5","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"azakus","id":46725,"avatar_url":"https://avatars.githubusercontent.com/u/46725?v=3","gravatar_id":"","url":"https://api.github.com/users/azakus","html_url":"https://github.com/azakus","followers_url":"https://api.github.com/users/azakus/followers","following_url":"https://api.github.com/users/azakus/following{/other_user}","gists_url":"https://api.github.com/users/azakus/gists{/gist_id}","starred_url":"https://api.github.com/users/azakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azakus/subscriptions","organizations_url":"https://api.github.com/users/azakus/orgs","repos_url":"https://api.github.com/users/azakus/repos","events_url":"https://api.github.com/users/azakus/events{/privacy}","received_events_url":"https://api.github.com/users/azakus/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2014-04-03T17:07:47Z","updated_at":"2015-11-11T07:41:29Z","closed_at":"2015-10-23T21:24:20Z","body":"See http://jsbin.com/huhis/1/edit. This logs the string \"loaded\" to the console in Chrome, Canary, and Safari — but not Firefox. (Separate bug: This displays \"loaded\" *twice* in Safari.\r\n\r\nBackground: I came across this case in trying to use a defer attribute on a script required by a analytics beacon element that would only be instantiated once per page. I wanted:\r\n\r\n* The beacon element to load its own script (rather than requiring the outer page to load the script separately)\r\n* The analytics script to be deferred to avoid delaying rendering of the page\r\n* Some work to be done after the deferred script eventually loaded.\r\n\r\nI couldn't work out how to sink an event handler on the script element's load event if the script tag were outside the template. I tried putting the script tag within the template, and that at least let me sink load with `on-load=\"{{loadedHandler}}\"`. This worked everywhere in Firefox, which I isolated to the jsbin above."},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/155694041","html_url":"https://github.com/Polymer/polymer/issues/465#issuecomment-155694041","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/465","id":155694041,"user":{"login":"halfstrik","id":914920,"avatar_url":"https://avatars.githubusercontent.com/u/914920?v=3","gravatar_id":"","url":"https://api.github.com/users/halfstrik","html_url":"https://github.com/halfstrik","followers_url":"https://api.github.com/users/halfstrik/followers","following_url":"https://api.github.com/users/halfstrik/following{/other_user}","gists_url":"https://api.github.com/users/halfstrik/gists{/gist_id}","starred_url":"https://api.github.com/users/halfstrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfstrik/subscriptions","organizations_url":"https://api.github.com/users/halfstrik/orgs","repos_url":"https://api.github.com/users/halfstrik/repos","events_url":"https://api.github.com/users/halfstrik/events{/privacy}","received_events_url":"https://api.github.com/users/halfstrik/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T07:41:29Z","updated_at":"2015-11-11T07:41:29Z","body":"Still <script> does not get executed if placed inside any custom element (in my case, in <paper-material>). But works in Chromium.\r\nPolymer versions tried: 1.1.3 and latest 1.2.1"}}