{"action":"created","issue":{"url":"https://api.github.com/repos/servo/servo/issues/9844","repository_url":"https://api.github.com/repos/servo/servo","labels_url":"https://api.github.com/repos/servo/servo/issues/9844/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/9844/comments","events_url":"https://api.github.com/repos/servo/servo/issues/9844/events","html_url":"https://github.com/servo/servo/issues/9844","id":137984292,"number":9844,"title":"High CPU usage during a RAF loop","user":{"login":"paulrouget","id":373579,"avatar_url":"https://avatars.githubusercontent.com/u/373579?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrouget","html_url":"https://github.com/paulrouget","followers_url":"https://api.github.com/users/paulrouget/followers","following_url":"https://api.github.com/users/paulrouget/following{/other_user}","gists_url":"https://api.github.com/users/paulrouget/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrouget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrouget/subscriptions","organizations_url":"https://api.github.com/users/paulrouget/orgs","repos_url":"https://api.github.com/users/paulrouget/repos","events_url":"https://api.github.com/users/paulrouget/events{/privacy}","received_events_url":"https://api.github.com/users/paulrouget/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/servo/servo/labels/A-browserhtml/P1","name":"A-browserhtml/P1","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-02T20:31:30Z","updated_at":"2016-04-07T20:27:17Z","closed_at":null,"body":"Something as simple at that:\r\n\r\n```html\r\n<script>\r\n  function foo() {\r\n    requestAnimationFrame(foo);\r\n  }\r\n</script>\r\n\r\n<button onclick=\"foo()\">Start rAF</button>\r\n```\r\n\r\n… shows a 30% to 50% CPU usage on my macbook."},"comment":{"url":"https://api.github.com/repos/servo/servo/issues/comments/207075673","html_url":"https://github.com/servo/servo/issues/9844#issuecomment-207075673","issue_url":"https://api.github.com/repos/servo/servo/issues/9844","id":207075673,"user":{"login":"pcwalton","id":157897,"avatar_url":"https://avatars.githubusercontent.com/u/157897?v=3","gravatar_id":"","url":"https://api.github.com/users/pcwalton","html_url":"https://github.com/pcwalton","followers_url":"https://api.github.com/users/pcwalton/followers","following_url":"https://api.github.com/users/pcwalton/following{/other_user}","gists_url":"https://api.github.com/users/pcwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/pcwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcwalton/subscriptions","organizations_url":"https://api.github.com/users/pcwalton/orgs","repos_url":"https://api.github.com/users/pcwalton/repos","events_url":"https://api.github.com/users/pcwalton/events{/privacy}","received_events_url":"https://api.github.com/users/pcwalton/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T20:27:17Z","updated_at":"2016-04-07T20:27:17Z","body":"Interesting. I get 20% for both rAF and setTimeout with the window in the background.\r\n"}}