{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/frontend/issues/8205","labels_url":"https://api.github.com/repos/guardian/frontend/issues/8205/labels{/name}","comments_url":"https://api.github.com/repos/guardian/frontend/issues/8205/comments","events_url":"https://api.github.com/repos/guardian/frontend/issues/8205/events","html_url":"https://github.com/guardian/frontend/pull/8205","id":56690911,"number":8205,"title":"Load CSS from non-blocking link element, not local storage","user":{"login":"sndrs","id":867233,"avatar_url":"https://avatars.githubusercontent.com/u/867233?v=3","gravatar_id":"","url":"https://api.github.com/users/sndrs","html_url":"https://github.com/sndrs","followers_url":"https://api.github.com/users/sndrs/followers","following_url":"https://api.github.com/users/sndrs/following{/other_user}","gists_url":"https://api.github.com/users/sndrs/gists{/gist_id}","starred_url":"https://api.github.com/users/sndrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sndrs/subscriptions","organizations_url":"https://api.github.com/users/sndrs/orgs","repos_url":"https://api.github.com/users/sndrs/repos","events_url":"https://api.github.com/users/sndrs/events{/privacy}","received_events_url":"https://api.github.com/users/sndrs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-05T16:14:18Z","updated_at":"2015-02-05T17:15:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guardian/frontend/pulls/8205","html_url":"https://github.com/guardian/frontend/pull/8205","diff_url":"https://github.com/guardian/frontend/pull/8205.diff","patch_url":"https://github.com/guardian/frontend/pull/8205.patch"},"body":"*Based hugely on https://github.com/filamentgroup/loadCSS*\r\n\r\nLoad all CSS from a `link` el, whose media is set to `only x`. This means the pre-parser should trigger load of the CSS, but it should be non-blocking since `x` is not the media we're looking for.\r\n\r\nOnce our stylesheet appears in `window.document.styleSheets`, its media is set to `screen` so the browser uses it.\r\n\r\nPreliminary testing works in IE8/9/10 and chrome. Needs thorough testing and benchmarking.\r\n\r\nIf the PR seems good, I'll pass it to @michaelwmcnamara for full testing.\r\n\r\ncc @mattosborn @phamann @gklopper "},"comment":{"url":"https://api.github.com/repos/guardian/frontend/issues/comments/73086128","html_url":"https://github.com/guardian/frontend/pull/8205#issuecomment-73086128","issue_url":"https://api.github.com/repos/guardian/frontend/issues/8205","id":73086128,"user":{"login":"gklopper","id":76709,"avatar_url":"https://avatars.githubusercontent.com/u/76709?v=3","gravatar_id":"","url":"https://api.github.com/users/gklopper","html_url":"https://github.com/gklopper","followers_url":"https://api.github.com/users/gklopper/followers","following_url":"https://api.github.com/users/gklopper/following{/other_user}","gists_url":"https://api.github.com/users/gklopper/gists{/gist_id}","starred_url":"https://api.github.com/users/gklopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gklopper/subscriptions","organizations_url":"https://api.github.com/users/gklopper/orgs","repos_url":"https://api.github.com/users/gklopper/repos","events_url":"https://api.github.com/users/gklopper/events{/privacy}","received_events_url":"https://api.github.com/users/gklopper/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T17:15:28Z","updated_at":"2015-02-05T17:15:28Z","body":":+1: - but definitely switchable"}}