{"action":"closed","number":81,"pull_request":{"url":"https://api.github.com/repos/plotly/plotly.js/pulls/81","id":52837691,"html_url":"https://github.com/plotly/plotly.js/pull/81","diff_url":"https://github.com/plotly/plotly.js/pull/81.diff","patch_url":"https://github.com/plotly/plotly.js/pull/81.patch","issue_url":"https://api.github.com/repos/plotly/plotly.js/issues/81","number":81,"state":"closed","locked":false,"title":"Optimize by calling window.getComputedStyle once","user":{"login":"mbonaci","id":497926,"avatar_url":"https://avatars.githubusercontent.com/u/497926?v=3","gravatar_id":"","url":"https://api.github.com/users/mbonaci","html_url":"https://github.com/mbonaci","followers_url":"https://api.github.com/users/mbonaci/followers","following_url":"https://api.github.com/users/mbonaci/following{/other_user}","gists_url":"https://api.github.com/users/mbonaci/gists{/gist_id}","starred_url":"https://api.github.com/users/mbonaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbonaci/subscriptions","organizations_url":"https://api.github.com/users/mbonaci/orgs","repos_url":"https://api.github.com/users/mbonaci/repos","events_url":"https://api.github.com/users/mbonaci/events{/privacy}","received_events_url":"https://api.github.com/users/mbonaci/received_events","type":"User","site_admin":false},"body":"Although called on a single element, getComputedStyle forces layout thrashing/reflow: https://gist.github.com/paulirish/5d52fb081b3570c81e3a","created_at":"2015-12-07T12:17:21Z","updated_at":"2015-12-07T15:07:37Z","closed_at":"2015-12-07T15:07:37Z","merged_at":"2015-12-07T15:07:37Z","merge_commit_sha":"db642a361238339417f99f289ee86f3c017f8352","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plotly/plotly.js/pulls/81/commits","review_comments_url":"https://api.github.com/repos/plotly/plotly.js/pulls/81/comments","review_comment_url":"https://api.github.com/repos/plotly/plotly.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plotly/plotly.js/issues/81/comments","statuses_url":"https://api.github.com/repos/plotly/plotly.js/statuses/116ca51fcfbe39eb519166bd1027fab110b45349","head":{"label":"mbonaci:patch-1","ref":"patch-1","sha":"116ca51fcfbe39eb519166bd1027fab110b45349","user":{"login":"mbonaci","id":497926,"avatar_url":"https://avatars.githubusercontent.com/u/497926?v=3","gravatar_id":"","url":"https://api.github.com/users/mbonaci","html_url":"https://github.com/mbonaci","followers_url":"https://api.github.com/users/mbonaci/followers","following_url":"https://api.github.com/users/mbonaci/following{/other_user}","gists_url":"https://api.github.com/users/mbonaci/gists{/gist_id}","starred_url":"https://api.github.com/users/mbonaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbonaci/subscriptions","organizations_url":"https://api.github.com/users/mbonaci/orgs","repos_url":"https://api.github.com/users/mbonaci/repos","events_url":"https://api.github.com/users/mbonaci/events{/privacy}","received_events_url":"https://api.github.com/users/mbonaci/received_events","type":"User","site_admin":false},"repo":{"id":47549901,"name":"plotly.js","full_name":"mbonaci/plotly.js","owner":{"login":"mbonaci","id":497926,"avatar_url":"https://avatars.githubusercontent.com/u/497926?v=3","gravatar_id":"","url":"https://api.github.com/users/mbonaci","html_url":"https://github.com/mbonaci","followers_url":"https://api.github.com/users/mbonaci/followers","following_url":"https://api.github.com/users/mbonaci/following{/other_user}","gists_url":"https://api.github.com/users/mbonaci/gists{/gist_id}","starred_url":"https://api.github.com/users/mbonaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbonaci/subscriptions","organizations_url":"https://api.github.com/users/mbonaci/orgs","repos_url":"https://api.github.com/users/mbonaci/repos","events_url":"https://api.github.com/users/mbonaci/events{/privacy}","received_events_url":"https://api.github.com/users/mbonaci/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbonaci/plotly.js","description":"The open source javascript graphing library that powers plotly","fork":true,"url":"https://api.github.com/repos/mbonaci/plotly.js","forks_url":"https://api.github.com/repos/mbonaci/plotly.js/forks","keys_url":"https://api.github.com/repos/mbonaci/plotly.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbonaci/plotly.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbonaci/plotly.js/teams","hooks_url":"https://api.github.com/repos/mbonaci/plotly.js/hooks","issue_events_url":"https://api.github.com/repos/mbonaci/plotly.js/issues/events{/number}","events_url":"https://api.github.com/repos/mbonaci/plotly.js/events","assignees_url":"https://api.github.com/repos/mbonaci/plotly.js/assignees{/user}","branches_url":"https://api.github.com/repos/mbonaci/plotly.js/branches{/branch}","tags_url":"https://api.github.com/repos/mbonaci/plotly.js/tags","blobs_url":"https://api.github.com/repos/mbonaci/plotly.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbonaci/plotly.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbonaci/plotly.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbonaci/plotly.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbonaci/plotly.js/statuses/{sha}","languages_url":"https://api.github.com/repos/mbonaci/plotly.js/languages","stargazers_url":"https://api.github.com/repos/mbonaci/plotly.js/stargazers","contributors_url":"https://api.github.com/repos/mbonaci/plotly.js/contributors","subscribers_url":"https://api.github.com/repos/mbonaci/plotly.js/subscribers","subscription_url":"https://api.github.com/repos/mbonaci/plotly.js/subscription","commits_url":"https://api.github.com/repos/mbonaci/plotly.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbonaci/plotly.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbonaci/plotly.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbonaci/plotly.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbonaci/plotly.js/contents/{+path}","compare_url":"https://api.github.com/repos/mbonaci/plotly.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbonaci/plotly.js/merges","archive_url":"https://api.github.com/repos/mbonaci/plotly.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbonaci/plotly.js/downloads","issues_url":"https://api.github.com/repos/mbonaci/plotly.js/issues{/number}","pulls_url":"https://api.github.com/repos/mbonaci/plotly.js/pulls{/number}","milestones_url":"https://api.github.com/repos/mbonaci/plotly.js/milestones{/number}","notifications_url":"https://api.github.com/repos/mbonaci/plotly.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbonaci/plotly.js/labels{/name}","releases_url":"https://api.github.com/repos/mbonaci/plotly.js/releases{/id}","created_at":"2015-12-07T12:09:11Z","updated_at":"2015-12-07T12:09:14Z","pushed_at":"2015-12-07T12:40:14Z","git_url":"git://github.com/mbonaci/plotly.js.git","ssh_url":"git@github.com:mbonaci/plotly.js.git","clone_url":"https://github.com/mbonaci/plotly.js.git","svn_url":"https://github.com/mbonaci/plotly.js","homepage":"https://plot.ly/javascript/","size":89924,"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":"plotly:master","ref":"master","sha":"43b7098cdb927a23b4a6f5d38517974afe60c213","user":{"login":"plotly","id":5997976,"avatar_url":"https://avatars.githubusercontent.com/u/5997976?v=3","gravatar_id":"","url":"https://api.github.com/users/plotly","html_url":"https://github.com/plotly","followers_url":"https://api.github.com/users/plotly/followers","following_url":"https://api.github.com/users/plotly/following{/other_user}","gists_url":"https://api.github.com/users/plotly/gists{/gist_id}","starred_url":"https://api.github.com/users/plotly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plotly/subscriptions","organizations_url":"https://api.github.com/users/plotly/orgs","repos_url":"https://api.github.com/users/plotly/repos","events_url":"https://api.github.com/users/plotly/events{/privacy}","received_events_url":"https://api.github.com/users/plotly/received_events","type":"Organization","site_admin":false},"repo":{"id":45646037,"name":"plotly.js","full_name":"plotly/plotly.js","owner":{"login":"plotly","id":5997976,"avatar_url":"https://avatars.githubusercontent.com/u/5997976?v=3","gravatar_id":"","url":"https://api.github.com/users/plotly","html_url":"https://github.com/plotly","followers_url":"https://api.github.com/users/plotly/followers","following_url":"https://api.github.com/users/plotly/following{/other_user}","gists_url":"https://api.github.com/users/plotly/gists{/gist_id}","starred_url":"https://api.github.com/users/plotly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plotly/subscriptions","organizations_url":"https://api.github.com/users/plotly/orgs","repos_url":"https://api.github.com/users/plotly/repos","events_url":"https://api.github.com/users/plotly/events{/privacy}","received_events_url":"https://api.github.com/users/plotly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plotly/plotly.js","description":"The open source javascript graphing library that powers plotly","fork":false,"url":"https://api.github.com/repos/plotly/plotly.js","forks_url":"https://api.github.com/repos/plotly/plotly.js/forks","keys_url":"https://api.github.com/repos/plotly/plotly.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plotly/plotly.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plotly/plotly.js/teams","hooks_url":"https://api.github.com/repos/plotly/plotly.js/hooks","issue_events_url":"https://api.github.com/repos/plotly/plotly.js/issues/events{/number}","events_url":"https://api.github.com/repos/plotly/plotly.js/events","assignees_url":"https://api.github.com/repos/plotly/plotly.js/assignees{/user}","branches_url":"https://api.github.com/repos/plotly/plotly.js/branches{/branch}","tags_url":"https://api.github.com/repos/plotly/plotly.js/tags","blobs_url":"https://api.github.com/repos/plotly/plotly.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plotly/plotly.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plotly/plotly.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/plotly/plotly.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plotly/plotly.js/statuses/{sha}","languages_url":"https://api.github.com/repos/plotly/plotly.js/languages","stargazers_url":"https://api.github.com/repos/plotly/plotly.js/stargazers","contributors_url":"https://api.github.com/repos/plotly/plotly.js/contributors","subscribers_url":"https://api.github.com/repos/plotly/plotly.js/subscribers","subscription_url":"https://api.github.com/repos/plotly/plotly.js/subscription","commits_url":"https://api.github.com/repos/plotly/plotly.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/plotly/plotly.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/plotly/plotly.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/plotly/plotly.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/plotly/plotly.js/contents/{+path}","compare_url":"https://api.github.com/repos/plotly/plotly.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plotly/plotly.js/merges","archive_url":"https://api.github.com/repos/plotly/plotly.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plotly/plotly.js/downloads","issues_url":"https://api.github.com/repos/plotly/plotly.js/issues{/number}","pulls_url":"https://api.github.com/repos/plotly/plotly.js/pulls{/number}","milestones_url":"https://api.github.com/repos/plotly/plotly.js/milestones{/number}","notifications_url":"https://api.github.com/repos/plotly/plotly.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plotly/plotly.js/labels{/name}","releases_url":"https://api.github.com/repos/plotly/plotly.js/releases{/id}","created_at":"2015-11-05T23:27:17Z","updated_at":"2015-12-07T14:47:47Z","pushed_at":"2015-12-07T15:07:37Z","git_url":"git://github.com/plotly/plotly.js.git","ssh_url":"git@github.com:plotly/plotly.js.git","clone_url":"https://github.com/plotly/plotly.js.git","svn_url":"https://github.com/plotly/plotly.js","homepage":"https://plot.ly/javascript/","size":93077,"stargazers_count":3468,"watchers_count":3468,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":165,"mirror_url":null,"open_issues_count":28,"forks":165,"open_issues":28,"watchers":3468,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/81"},"html":{"href":"https://github.com/plotly/plotly.js/pull/81"},"issue":{"href":"https://api.github.com/repos/plotly/plotly.js/issues/81"},"comments":{"href":"https://api.github.com/repos/plotly/plotly.js/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/plotly/plotly.js/statuses/116ca51fcfbe39eb519166bd1027fab110b45349"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"etpinard","id":6675409,"avatar_url":"https://avatars.githubusercontent.com/u/6675409?v=3","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":5,"deletions":3,"changed_files":1}}