{"comment":{"url":"https://api.github.com/repos/marcj/css-element-queries/comments/17240846","html_url":"https://github.com/marcj/css-element-queries/commit/77686370bfe36333c044423a73758cd8c925ae13#commitcomment-17240846","id":17240846,"user":{"login":"ayuzvyak","id":13132094,"avatar_url":"https://avatars.githubusercontent.com/u/13132094?v=3","gravatar_id":"","url":"https://api.github.com/users/ayuzvyak","html_url":"https://github.com/ayuzvyak","followers_url":"https://api.github.com/users/ayuzvyak/followers","following_url":"https://api.github.com/users/ayuzvyak/following{/other_user}","gists_url":"https://api.github.com/users/ayuzvyak/gists{/gist_id}","starred_url":"https://api.github.com/users/ayuzvyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayuzvyak/subscriptions","organizations_url":"https://api.github.com/users/ayuzvyak/orgs","repos_url":"https://api.github.com/users/ayuzvyak/repos","events_url":"https://api.github.com/users/ayuzvyak/events{/privacy}","received_events_url":"https://api.github.com/users/ayuzvyak/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"77686370bfe36333c044423a73758cd8c925ae13","created_at":"2016-04-25T19:16:03Z","updated_at":"2016-04-25T19:16:03Z","body":"And now requestAnimationFrame with dirty checking is constantly called every few milliseconds even when no resize (scroll) events is fired. And it might spent much more resources. \r\nMaybe it would be more efficient if you will request animation frame only when scroll event is fired and do not call resize event until animation frame is obtained?"}}