{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/16603","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/16603/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/16603/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/16603/events","html_url":"https://github.com/dart-lang/sdk/issues/16603","id":84566150,"number":16603,"title":"Running two or more Dart scripts from the same page must be allowed","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars3.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"id":219928196,"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-dartium","name":"area-dartium","color":"c7def8","default":false},{"id":219928343,"url":"https://api.github.com/repos/dart-lang/sdk/labels/C9","name":"C9","color":"ededed","default":false},{"id":219928222,"url":"https://api.github.com/repos/dart-lang/sdk/labels/State:%20needs%20info","name":"State: needs info","color":"ededed","default":false},{"id":334529063,"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type:%20bug","name":"Type: bug","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"jacob314","id":1226812,"avatar_url":"https://avatars2.githubusercontent.com/u/1226812?v=3","gravatar_id":"","url":"https://api.github.com/users/jacob314","html_url":"https://github.com/jacob314","followers_url":"https://api.github.com/users/jacob314/followers","following_url":"https://api.github.com/users/jacob314/following{/other_user}","gists_url":"https://api.github.com/users/jacob314/gists{/gist_id}","starred_url":"https://api.github.com/users/jacob314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacob314/subscriptions","organizations_url":"https://api.github.com/users/jacob314/orgs","repos_url":"https://api.github.com/users/jacob314/repos","events_url":"https://api.github.com/users/jacob314/events{/privacy}","received_events_url":"https://api.github.com/users/jacob314/received_events","type":"User","site_admin":false},"assignees":[{"login":"jacob314","id":1226812,"avatar_url":"https://avatars2.githubusercontent.com/u/1226812?v=3","gravatar_id":"","url":"https://api.github.com/users/jacob314","html_url":"https://github.com/jacob314","followers_url":"https://api.github.com/users/jacob314/followers","following_url":"https://api.github.com/users/jacob314/following{/other_user}","gists_url":"https://api.github.com/users/jacob314/gists{/gist_id}","starred_url":"https://api.github.com/users/jacob314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacob314/subscriptions","organizations_url":"https://api.github.com/users/jacob314/orgs","repos_url":"https://api.github.com/users/jacob314/repos","events_url":"https://api.github.com/users/jacob314/events{/privacy}","received_events_url":"https://api.github.com/users/jacob314/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2014-02-06T17:27:05Z","updated_at":"2017-07-03T09:41:48Z","closed_at":"2017-07-03T09:41:48Z","body":"_This issue was originally filed by @Emasoft_\n\n---\n\nRunning two or more Dart scripts from the same page must be allowed.\n\nHere is a common use case where it's absolutely necessary:\n\nConsider a page with:\n\n&nbsp;&nbsp;&lt;head&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;Reusing Polymers&lt;/title&gt;\n\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Load component(s) --&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;link rel=&quot;import&quot; href=&quot;packages/reuse/elements/hello-you.html&quot;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Load Polymer --&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&quot;application/dart&quot;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;export 'package:polymer/init.dart';\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;/script&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&quot;application/dart&quot; src=&quot;main.dart&quot;&gt;&lt;/script&gt;\n&nbsp;&nbsp;&lt;/head&gt;\n&nbsp;&nbsp;&lt;body&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;container&quot;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h1&gt;Polymer Reuse&lt;/h1&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;hello-you&gt;&lt;/hello-you&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;\n&nbsp;&nbsp;&lt;/body&gt;\n\nThe problem is that both the &lt;script&gt; around export of Polymer's init.dart and the &lt;script&gt; that references main.dart conflict:\n\n&quot;Only one Dart script tag allowed per document\nwarning: more than one Dart script tag in http://localhost:8080/index.html. Dartium currently only allows a single Dart script tag per document.&quot;\n\nThere is no reason the two Dart scripts cannot run in the same page. To prove this, I just need to only use the dart2js compiled version on main.dart. That is, instead of relying on dart.js to fallback to the compiled version of main.dart, I use it from the outset:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Load component(s) --&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;link rel=&quot;import&quot; href=&quot;packages/reuse/elements/hello-you.html&quot;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Load Polymer --&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&quot;application/dart&quot;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;export 'package:polymer/init.dart';\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;/script&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;script src=&quot;main.dart.js&quot;&gt;&lt;/script&gt;\n\nWith that, I get both my Polymer and my simple main.dart console output working fine.\n\nThen the limitation to only one Dart script per page should be removed.\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/312599476","html_url":"https://github.com/dart-lang/sdk/issues/16603#issuecomment-312599476","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/16603","id":312599476,"user":{"login":"whesse","id":4905639,"avatar_url":"https://avatars1.githubusercontent.com/u/4905639?v=3","gravatar_id":"","url":"https://api.github.com/users/whesse","html_url":"https://github.com/whesse","followers_url":"https://api.github.com/users/whesse/followers","following_url":"https://api.github.com/users/whesse/following{/other_user}","gists_url":"https://api.github.com/users/whesse/gists{/gist_id}","starred_url":"https://api.github.com/users/whesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whesse/subscriptions","organizations_url":"https://api.github.com/users/whesse/orgs","repos_url":"https://api.github.com/users/whesse/repos","events_url":"https://api.github.com/users/whesse/events{/privacy}","received_events_url":"https://api.github.com/users/whesse/received_events","type":"User","site_admin":false},"created_at":"2017-07-03T09:41:48Z","updated_at":"2017-07-03T09:41:48Z","body":"Closing this issue with \"will not fix\".  Dartium is being deprecated, and replaced with dartdevc."}}
{"actor":{"display_login":"whesse"}}