New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce useRequestIdleCallback optimization hook #209
Comments
Hey @gremo, thanks for opening this! This looks interesting and is also the first time I have heard of this API! I don't see a reason why we wouldn't/shouldn't introduce this. The only thing I don't "love" is Nevertheless, do you want to whip up a PR for it so we can discuss the details in there? |
Sure, thanks! I'll made it in a few days as soon as I have some spare time 😁 |
@marcoroth done, missing tests and some playgrounds. Let me know, i've changed the naming as you requested. WIP PR #212 |
Thanks, let's continue the discussion in the PR |
Why not introduce
useRequestIdleCallback
to usewindow.requestIdleCallback()
easily in controllers?Can I use
requestIdleCallback
WIP hook example in JavaScript
Usage example:
The text was updated successfully, but these errors were encountered: