{"action":"created","issue":{"url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/299","labels_url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/299/comments","events_url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/299/events","html_url":"https://github.com/DestinyItemManager/DIM/pull/299","id":110907667,"number":299,"title":"Use the page visibility API to control refresh","user":{"login":"bhollis","id":313208,"avatar_url":"https://avatars.githubusercontent.com/u/313208?v=3","gravatar_id":"","url":"https://api.github.com/users/bhollis","html_url":"https://github.com/bhollis","followers_url":"https://api.github.com/users/bhollis/followers","following_url":"https://api.github.com/users/bhollis/following{/other_user}","gists_url":"https://api.github.com/users/bhollis/gists{/gist_id}","starred_url":"https://api.github.com/users/bhollis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhollis/subscriptions","organizations_url":"https://api.github.com/users/bhollis/orgs","repos_url":"https://api.github.com/users/bhollis/repos","events_url":"https://api.github.com/users/bhollis/events{/privacy}","received_events_url":"https://api.github.com/users/bhollis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-12T04:32:11Z","updated_at":"2015-12-30T00:33:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DestinyItemManager/DIM/pulls/299","html_url":"https://github.com/DestinyItemManager/DIM/pull/299","diff_url":"https://github.com/DestinyItemManager/DIM/pull/299.diff","patch_url":"https://github.com/DestinyItemManager/DIM/pull/299.patch"},"body":"Use the page visibility API to avoid refreshing when the page is not visible, and to trigger a refresh when it becomes visible. There's still a maximum of one auto-refresh per minute, even caused by tab switching."},"comment":{"url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/comments/167904860","html_url":"https://github.com/DestinyItemManager/DIM/pull/299#issuecomment-167904860","issue_url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/299","id":167904860,"user":{"login":"bhollis","id":313208,"avatar_url":"https://avatars.githubusercontent.com/u/313208?v=3","gravatar_id":"","url":"https://api.github.com/users/bhollis","html_url":"https://github.com/bhollis","followers_url":"https://api.github.com/users/bhollis/followers","following_url":"https://api.github.com/users/bhollis/following{/other_user}","gists_url":"https://api.github.com/users/bhollis/gists{/gist_id}","starred_url":"https://api.github.com/users/bhollis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhollis/subscriptions","organizations_url":"https://api.github.com/users/bhollis/orgs","repos_url":"https://api.github.com/users/bhollis/repos","events_url":"https://api.github.com/users/bhollis/events{/privacy}","received_events_url":"https://api.github.com/users/bhollis/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T00:33:28Z","updated_at":"2015-12-30T00:33:28Z","body":"It's been a couple months - perhaps this could be merged and `perf` could take it as an upstream merge?"}}