{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/313","labels_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/313/comments","events_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/313/events","html_url":"https://github.com/PolymerElements/polymer-starter-kit/issues/313","id":101688018,"number":313,"title":"Explore support for conditionally & async loading Web Component polyfills","user":{"login":"addyosmani","id":110953,"avatar_url":"https://avatars.githubusercontent.com/u/110953?v=3","gravatar_id":"","url":"https://api.github.com/users/addyosmani","html_url":"https://github.com/addyosmani","followers_url":"https://api.github.com/users/addyosmani/followers","following_url":"https://api.github.com/users/addyosmani/following{/other_user}","gists_url":"https://api.github.com/users/addyosmani/gists{/gist_id}","starred_url":"https://api.github.com/users/addyosmani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addyosmani/subscriptions","organizations_url":"https://api.github.com/users/addyosmani/orgs","repos_url":"https://api.github.com/users/addyosmani/repos","events_url":"https://api.github.com/users/addyosmani/events{/privacy}","received_events_url":"https://api.github.com/users/addyosmani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/labels/performance","name":"performance","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/milestones/1","html_url":"https://github.com/PolymerElements/polymer-starter-kit/milestones/1.1.0","labels_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/milestones/1/labels","id":1214692,"number":1,"title":"1.1.0","description":"","creator":{"login":"addyosmani","id":110953,"avatar_url":"https://avatars.githubusercontent.com/u/110953?v=3","gravatar_id":"","url":"https://api.github.com/users/addyosmani","html_url":"https://github.com/addyosmani","followers_url":"https://api.github.com/users/addyosmani/followers","following_url":"https://api.github.com/users/addyosmani/following{/other_user}","gists_url":"https://api.github.com/users/addyosmani/gists{/gist_id}","starred_url":"https://api.github.com/users/addyosmani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addyosmani/subscriptions","organizations_url":"https://api.github.com/users/addyosmani/orgs","repos_url":"https://api.github.com/users/addyosmani/repos","events_url":"https://api.github.com/users/addyosmani/events{/privacy}","received_events_url":"https://api.github.com/users/addyosmani/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":11,"state":"open","created_at":"2015-07-19T15:15:28Z","updated_at":"2015-08-27T23:08:22Z","due_on":"2015-09-08T23:00:00Z","closed_at":null},"comments":13,"created_at":"2015-08-18T15:51:26Z","updated_at":"2015-08-28T18:19:29Z","closed_at":null,"body":"As part of #178 :zap: :zap: :zap:  \r\n\r\nReferences:\r\n* https://aerotwist.com/blog/polymer-for-the-performance-obsessed/\r\n* https://github.com/ebidel/polymer-gmail/blob/master/scripts/app.js#L50\r\n\r\nand there's Glen Madderns's snippet:\r\n\r\n```js\r\n/**\r\n * Conditionally loads webcomponents polyfill if needed.\r\n * Credit: Glen Maddern (geelen on GitHub)\r\n */\r\nvar webComponentsSupported = ('registerElement' in document\r\n  && 'import' in document.createElement('link')\r\n  && 'content' in document.createElement('template'));\r\n\r\nif (!webComponentsSupported) {\r\n  var wcPoly = document.createElement('script');\r\n  wcPoly.src = '/third_party/webcomponents-lite.min.js';\r\n  wcPoly.onload = lazyLoadPolymerAndElements;\r\n  document.head.appendChild(wcPoly);\r\n} else {\r\n  lazyLoadPolymerAndElements();\r\n}\r\n\r\nfunction lazyLoadPolymerAndElements () {\r\n  // Set up the element imports.\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/comments/135852405","html_url":"https://github.com/PolymerElements/polymer-starter-kit/issues/313#issuecomment-135852405","issue_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/313","id":135852405,"user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T18:19:29Z","updated_at":"2015-08-28T18:19:29Z","body":"In my mind if someone wanted a perf build they could run something like\r\n`gulp build --optimized` or something... thoughts?\r\n"}}