{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/818","labels_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/818/labels{/name}","comments_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/818/comments","events_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/818/events","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/818","id":126543964,"number":818,"title":"Styles are loaded after JS, causing annoying visual glitches.","user":{"login":"asaf","id":14259,"avatar_url":"https://avatars.githubusercontent.com/u/14259?v=3","gravatar_id":"","url":"https://api.github.com/users/asaf","html_url":"https://github.com/asaf","followers_url":"https://api.github.com/users/asaf/followers","following_url":"https://api.github.com/users/asaf/following{/other_user}","gists_url":"https://api.github.com/users/asaf/gists{/gist_id}","starred_url":"https://api.github.com/users/asaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaf/subscriptions","organizations_url":"https://api.github.com/users/asaf/orgs","repos_url":"https://api.github.com/users/asaf/repos","events_url":"https://api.github.com/users/asaf/events{/privacy}","received_events_url":"https://api.github.com/users/asaf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/labels/needs%20info","name":"needs info","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-13T23:53:44Z","updated_at":"2016-01-20T08:30:02Z","closed_at":null,"body":"Hey,\r\n\r\nIt seems like JS is loaded before CSS files, so the flow ends as:\r\n\r\n1) Some html is rendered in server side.\r\n2) Html is displayed to user.\r\n3) JS is loaded (this may take a while)\r\n4) CSS generated form 'scss imports' gets downloaded and applied.\r\n\r\nThe delay between 3-4 causes a small UI glitch until styles are applied to the server side generated html,\r\n\r\nIs there a way to load CSS files before JS to avoid this?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/comments/173127593","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/818#issuecomment-173127593","issue_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/818","id":173127593,"user":{"login":"quicksnap","id":1199742,"avatar_url":"https://avatars.githubusercontent.com/u/1199742?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksnap","html_url":"https://github.com/quicksnap","followers_url":"https://api.github.com/users/quicksnap/followers","following_url":"https://api.github.com/users/quicksnap/following{/other_user}","gists_url":"https://api.github.com/users/quicksnap/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksnap/subscriptions","organizations_url":"https://api.github.com/users/quicksnap/orgs","repos_url":"https://api.github.com/users/quicksnap/repos","events_url":"https://api.github.com/users/quicksnap/events{/privacy}","received_events_url":"https://api.github.com/users/quicksnap/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T08:30:02Z","updated_at":"2016-01-20T08:30:02Z","body":"Pretty sure this is a known side effect in dev mode. Could you confirm @asaf?"}}