{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/bengourley/hot-rld/pulls/4","id":96027150,"html_url":"https://github.com/bengourley/hot-rld/pull/4","diff_url":"https://github.com/bengourley/hot-rld/pull/4.diff","patch_url":"https://github.com/bengourley/hot-rld/pull/4.patch","issue_url":"https://api.github.com/repos/bengourley/hot-rld/issues/4","number":4,"state":"closed","locked":false,"title":"Eliminate FOUC on CSS updates","user":{"login":"Fauntleroy","id":507047,"avatar_url":"https://avatars.githubusercontent.com/u/507047?v=3","gravatar_id":"","url":"https://api.github.com/users/Fauntleroy","html_url":"https://github.com/Fauntleroy","followers_url":"https://api.github.com/users/Fauntleroy/followers","following_url":"https://api.github.com/users/Fauntleroy/following{/other_user}","gists_url":"https://api.github.com/users/Fauntleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fauntleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fauntleroy/subscriptions","organizations_url":"https://api.github.com/users/Fauntleroy/orgs","repos_url":"https://api.github.com/users/Fauntleroy/repos","events_url":"https://api.github.com/users/Fauntleroy/events{/privacy}","received_events_url":"https://api.github.com/users/Fauntleroy/received_events","type":"User","site_admin":false},"body":"When using `replaceChild` to switch stylesheets there's a brief moment of unstyled content. By waiting for `link.onload`, the new styles are in place before the old styles are removed, eliminating the FOUC.\r\n\r\nThe `setTimeout` exists just in case the browser does not support the `onload` event on `link` elements.","created_at":"2016-12-01T05:07:53Z","updated_at":"2016-12-01T10:11:28Z","closed_at":"2016-12-01T10:11:27Z","merged_at":"2016-12-01T10:11:27Z","merge_commit_sha":"63a079d703aa24343fbc08838a482b32ebb85ba0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bengourley/hot-rld/pulls/4/commits","review_comments_url":"https://api.github.com/repos/bengourley/hot-rld/pulls/4/comments","review_comment_url":"https://api.github.com/repos/bengourley/hot-rld/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bengourley/hot-rld/issues/4/comments","statuses_url":"https://api.github.com/repos/bengourley/hot-rld/statuses/bab66345d5b603c29e538e4269fabd345bd22753","head":{"label":"Fauntleroy:no-fouc","ref":"no-fouc","sha":"bab66345d5b603c29e538e4269fabd345bd22753","user":{"login":"Fauntleroy","id":507047,"avatar_url":"https://avatars.githubusercontent.com/u/507047?v=3","gravatar_id":"","url":"https://api.github.com/users/Fauntleroy","html_url":"https://github.com/Fauntleroy","followers_url":"https://api.github.com/users/Fauntleroy/followers","following_url":"https://api.github.com/users/Fauntleroy/following{/other_user}","gists_url":"https://api.github.com/users/Fauntleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fauntleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fauntleroy/subscriptions","organizations_url":"https://api.github.com/users/Fauntleroy/orgs","repos_url":"https://api.github.com/users/Fauntleroy/repos","events_url":"https://api.github.com/users/Fauntleroy/events{/privacy}","received_events_url":"https://api.github.com/users/Fauntleroy/received_events","type":"User","site_admin":false},"repo":{"id":75254079,"name":"hot-rld","full_name":"Fauntleroy/hot-rld","owner":{"login":"Fauntleroy","id":507047,"avatar_url":"https://avatars.githubusercontent.com/u/507047?v=3","gravatar_id":"","url":"https://api.github.com/users/Fauntleroy","html_url":"https://github.com/Fauntleroy","followers_url":"https://api.github.com/users/Fauntleroy/followers","following_url":"https://api.github.com/users/Fauntleroy/following{/other_user}","gists_url":"https://api.github.com/users/Fauntleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fauntleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fauntleroy/subscriptions","organizations_url":"https://api.github.com/users/Fauntleroy/orgs","repos_url":"https://api.github.com/users/Fauntleroy/repos","events_url":"https://api.github.com/users/Fauntleroy/events{/privacy}","received_events_url":"https://api.github.com/users/Fauntleroy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Fauntleroy/hot-rld","description":"Hot reload for js/css files.","fork":true,"url":"https://api.github.com/repos/Fauntleroy/hot-rld","forks_url":"https://api.github.com/repos/Fauntleroy/hot-rld/forks","keys_url":"https://api.github.com/repos/Fauntleroy/hot-rld/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fauntleroy/hot-rld/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fauntleroy/hot-rld/teams","hooks_url":"https://api.github.com/repos/Fauntleroy/hot-rld/hooks","issue_events_url":"https://api.github.com/repos/Fauntleroy/hot-rld/issues/events{/number}","events_url":"https://api.github.com/repos/Fauntleroy/hot-rld/events","assignees_url":"https://api.github.com/repos/Fauntleroy/hot-rld/assignees{/user}","branches_url":"https://api.github.com/repos/Fauntleroy/hot-rld/branches{/branch}","tags_url":"https://api.github.com/repos/Fauntleroy/hot-rld/tags","blobs_url":"https://api.github.com/repos/Fauntleroy/hot-rld/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fauntleroy/hot-rld/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fauntleroy/hot-rld/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fauntleroy/hot-rld/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fauntleroy/hot-rld/statuses/{sha}","languages_url":"https://api.github.com/repos/Fauntleroy/hot-rld/languages","stargazers_url":"https://api.github.com/repos/Fauntleroy/hot-rld/stargazers","contributors_url":"https://api.github.com/repos/Fauntleroy/hot-rld/contributors","subscribers_url":"https://api.github.com/repos/Fauntleroy/hot-rld/subscribers","subscription_url":"https://api.github.com/repos/Fauntleroy/hot-rld/subscription","commits_url":"https://api.github.com/repos/Fauntleroy/hot-rld/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fauntleroy/hot-rld/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fauntleroy/hot-rld/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fauntleroy/hot-rld/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fauntleroy/hot-rld/contents/{+path}","compare_url":"https://api.github.com/repos/Fauntleroy/hot-rld/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fauntleroy/hot-rld/merges","archive_url":"https://api.github.com/repos/Fauntleroy/hot-rld/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fauntleroy/hot-rld/downloads","issues_url":"https://api.github.com/repos/Fauntleroy/hot-rld/issues{/number}","pulls_url":"https://api.github.com/repos/Fauntleroy/hot-rld/pulls{/number}","milestones_url":"https://api.github.com/repos/Fauntleroy/hot-rld/milestones{/number}","notifications_url":"https://api.github.com/repos/Fauntleroy/hot-rld/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fauntleroy/hot-rld/labels{/name}","releases_url":"https://api.github.com/repos/Fauntleroy/hot-rld/releases{/id}","deployments_url":"https://api.github.com/repos/Fauntleroy/hot-rld/deployments","created_at":"2016-12-01T04:08:06Z","updated_at":"2016-12-01T04:08:07Z","pushed_at":"2016-12-01T05:05:47Z","git_url":"git://github.com/Fauntleroy/hot-rld.git","ssh_url":"git@github.com:Fauntleroy/hot-rld.git","clone_url":"https://github.com/Fauntleroy/hot-rld.git","svn_url":"https://github.com/Fauntleroy/hot-rld","homepage":"","size":12,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bengourley:master","ref":"master","sha":"715f42508ac7ab2801b9618031c9b68ab1b98890","user":{"login":"bengourley","id":609579,"avatar_url":"https://avatars.githubusercontent.com/u/609579?v=3","gravatar_id":"","url":"https://api.github.com/users/bengourley","html_url":"https://github.com/bengourley","followers_url":"https://api.github.com/users/bengourley/followers","following_url":"https://api.github.com/users/bengourley/following{/other_user}","gists_url":"https://api.github.com/users/bengourley/gists{/gist_id}","starred_url":"https://api.github.com/users/bengourley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengourley/subscriptions","organizations_url":"https://api.github.com/users/bengourley/orgs","repos_url":"https://api.github.com/users/bengourley/repos","events_url":"https://api.github.com/users/bengourley/events{/privacy}","received_events_url":"https://api.github.com/users/bengourley/received_events","type":"User","site_admin":false},"repo":{"id":72665873,"name":"hot-rld","full_name":"bengourley/hot-rld","owner":{"login":"bengourley","id":609579,"avatar_url":"https://avatars.githubusercontent.com/u/609579?v=3","gravatar_id":"","url":"https://api.github.com/users/bengourley","html_url":"https://github.com/bengourley","followers_url":"https://api.github.com/users/bengourley/followers","following_url":"https://api.github.com/users/bengourley/following{/other_user}","gists_url":"https://api.github.com/users/bengourley/gists{/gist_id}","starred_url":"https://api.github.com/users/bengourley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengourley/subscriptions","organizations_url":"https://api.github.com/users/bengourley/orgs","repos_url":"https://api.github.com/users/bengourley/repos","events_url":"https://api.github.com/users/bengourley/events{/privacy}","received_events_url":"https://api.github.com/users/bengourley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bengourley/hot-rld","description":"Hot reload for js/css files.","fork":false,"url":"https://api.github.com/repos/bengourley/hot-rld","forks_url":"https://api.github.com/repos/bengourley/hot-rld/forks","keys_url":"https://api.github.com/repos/bengourley/hot-rld/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bengourley/hot-rld/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bengourley/hot-rld/teams","hooks_url":"https://api.github.com/repos/bengourley/hot-rld/hooks","issue_events_url":"https://api.github.com/repos/bengourley/hot-rld/issues/events{/number}","events_url":"https://api.github.com/repos/bengourley/hot-rld/events","assignees_url":"https://api.github.com/repos/bengourley/hot-rld/assignees{/user}","branches_url":"https://api.github.com/repos/bengourley/hot-rld/branches{/branch}","tags_url":"https://api.github.com/repos/bengourley/hot-rld/tags","blobs_url":"https://api.github.com/repos/bengourley/hot-rld/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bengourley/hot-rld/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bengourley/hot-rld/git/refs{/sha}","trees_url":"https://api.github.com/repos/bengourley/hot-rld/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bengourley/hot-rld/statuses/{sha}","languages_url":"https://api.github.com/repos/bengourley/hot-rld/languages","stargazers_url":"https://api.github.com/repos/bengourley/hot-rld/stargazers","contributors_url":"https://api.github.com/repos/bengourley/hot-rld/contributors","subscribers_url":"https://api.github.com/repos/bengourley/hot-rld/subscribers","subscription_url":"https://api.github.com/repos/bengourley/hot-rld/subscription","commits_url":"https://api.github.com/repos/bengourley/hot-rld/commits{/sha}","git_commits_url":"https://api.github.com/repos/bengourley/hot-rld/git/commits{/sha}","comments_url":"https://api.github.com/repos/bengourley/hot-rld/comments{/number}","issue_comment_url":"https://api.github.com/repos/bengourley/hot-rld/issues/comments{/number}","contents_url":"https://api.github.com/repos/bengourley/hot-rld/contents/{+path}","compare_url":"https://api.github.com/repos/bengourley/hot-rld/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bengourley/hot-rld/merges","archive_url":"https://api.github.com/repos/bengourley/hot-rld/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bengourley/hot-rld/downloads","issues_url":"https://api.github.com/repos/bengourley/hot-rld/issues{/number}","pulls_url":"https://api.github.com/repos/bengourley/hot-rld/pulls{/number}","milestones_url":"https://api.github.com/repos/bengourley/hot-rld/milestones{/number}","notifications_url":"https://api.github.com/repos/bengourley/hot-rld/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bengourley/hot-rld/labels{/name}","releases_url":"https://api.github.com/repos/bengourley/hot-rld/releases{/id}","deployments_url":"https://api.github.com/repos/bengourley/hot-rld/deployments","created_at":"2016-11-02T17:46:02Z","updated_at":"2016-11-16T23:20:34Z","pushed_at":"2016-12-01T10:11:28Z","git_url":"git://github.com/bengourley/hot-rld.git","ssh_url":"git@github.com:bengourley/hot-rld.git","clone_url":"https://github.com/bengourley/hot-rld.git","svn_url":"https://github.com/bengourley/hot-rld","homepage":"","size":11,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bengourley/hot-rld/pulls/4"},"html":{"href":"https://github.com/bengourley/hot-rld/pull/4"},"issue":{"href":"https://api.github.com/repos/bengourley/hot-rld/issues/4"},"comments":{"href":"https://api.github.com/repos/bengourley/hot-rld/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/bengourley/hot-rld/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/bengourley/hot-rld/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bengourley/hot-rld/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/bengourley/hot-rld/statuses/bab66345d5b603c29e538e4269fabd345bd22753"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bengourley","id":609579,"avatar_url":"https://avatars.githubusercontent.com/u/609579?v=3","gravatar_id":"","url":"https://api.github.com/users/bengourley","html_url":"https://github.com/bengourley","followers_url":"https://api.github.com/users/bengourley/followers","following_url":"https://api.github.com/users/bengourley/following{/other_user}","gists_url":"https://api.github.com/users/bengourley/gists{/gist_id}","starred_url":"https://api.github.com/users/bengourley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengourley/subscriptions","organizations_url":"https://api.github.com/users/bengourley/orgs","repos_url":"https://api.github.com/users/bengourley/repos","events_url":"https://api.github.com/users/bengourley/events{/privacy}","received_events_url":"https://api.github.com/users/bengourley/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"bengourley"}}