{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/3113","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/3113/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/3113/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/3113/events","html_url":"https://github.com/Polymer/polymer/issues/3113","id":119600100,"number":3113,"title":"importHref should load imports asynchronously","user":{"login":"ebidel","id":238208,"avatar_url":"https://avatars.githubusercontent.com/u/238208?v=3","gravatar_id":"","url":"https://api.github.com/users/ebidel","html_url":"https://github.com/ebidel","followers_url":"https://api.github.com/users/ebidel/followers","following_url":"https://api.github.com/users/ebidel/following{/other_user}","gists_url":"https://api.github.com/users/ebidel/gists{/gist_id}","starred_url":"https://api.github.com/users/ebidel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebidel/subscriptions","organizations_url":"https://api.github.com/users/ebidel/orgs","repos_url":"https://api.github.com/users/ebidel/repos","events_url":"https://api.github.com/users/ebidel/events{/privacy}","received_events_url":"https://api.github.com/users/ebidel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/async","name":"async","color":"c7def8"},{"url":"https://api.github.com/repos/Polymer/polymer/labels/performance","name":"performance","color":"FF9500"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T22:54:59Z","updated_at":"2015-12-01T01:10:37Z","closed_at":null,"body":"`Polymer.Base.importHref` doesn't load imports asynchronously. In apps, this can cause layout flashes as the import is added to the DOM and loads. I've witnessed this on a couple of apps were we're using `importHref` to dynamically load bundles, asynchronously.\r\n\r\nInstead, loading it with the `async` attr take it out of rendering and solves the issue."},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/160814429","html_url":"https://github.com/Polymer/polymer/issues/3113#issuecomment-160814429","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/3113","id":160814429,"user":{"login":"kevinpschaaf","id":1354932,"avatar_url":"https://avatars.githubusercontent.com/u/1354932?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinpschaaf","html_url":"https://github.com/kevinpschaaf","followers_url":"https://api.github.com/users/kevinpschaaf/followers","following_url":"https://api.github.com/users/kevinpschaaf/following{/other_user}","gists_url":"https://api.github.com/users/kevinpschaaf/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinpschaaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinpschaaf/subscriptions","organizations_url":"https://api.github.com/users/kevinpschaaf/orgs","repos_url":"https://api.github.com/users/kevinpschaaf/repos","events_url":"https://api.github.com/users/kevinpschaaf/events{/privacy}","received_events_url":"https://api.github.com/users/kevinpschaaf/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T01:10:37Z","updated_at":"2015-12-01T01:10:37Z","body":"Can you provide a repro of how the layout \"flashes\" when a sync import is added to the document?\r\n\r\nIt doesn't make sense that a sync import would cause fouc and that making it async would fix it, without there being some sort of underlying Chrome bug, so it's worth understanding what you're actually seeing."}}