{"action":"opened","issue":{"url":"https://api.github.com/repos/servo/servo/issues/9834","repository_url":"https://api.github.com/repos/servo/servo","labels_url":"https://api.github.com/repos/servo/servo/issues/9834/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/9834/comments","events_url":"https://api.github.com/repos/servo/servo/issues/9834/events","html_url":"https://github.com/servo/servo/issues/9834","id":137729934,"number":9834,"title":"Concurrent rAF loops are not deterministic","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-02T00:11:41Z","updated_at":"2016-03-02T00:11:41Z","closed_at":null,"body":"```htl\r\n<script>\r\n  var i = 0;\r\n  \r\n  var loopA = t => {\r\n    console.log(\"A: \" + t);\r\n    \r\n    if (i++ < 5) {\r\n      requestAnimationFrame(loopA);\r\n    }\r\n  };\r\n  \r\n  var loopB = t => {\r\n    console.log(\"B: \" + t);    \r\n    if (i < 5) {\r\n      requestAnimationFrame(loopB);\r\n    }\r\n  };\r\n\r\n  loopA();\r\n  loopB();\r\n</script>\r\n```\r\n\r\nChrome and Firefox:\r\n```\r\n====\r\nA\r\nB\r\nA\r\nB\r\nA\r\nB\r\nA\r\nB\r\nA\r\nB\r\nA\r\n```\r\n\r\nServo:\r\n\r\n```\r\n====\r\nA\r\nB\r\nB\r\nA\r\nB\r\nA\r\nA\r\nB\r\nA\r\nB\r\nA\r\n```"}}