-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add more priorities #1
Comments
Wild idea, but would is be possible to do something like extend the delay adaptively? RIC does this but it's often too fast. I've used algorithms that are able to calculate current CPU pressure. I mainly do this so I can block third party tags by monkey patching document.createElement. Then based of CPU pressure I can suspend the unblock rates till CPU isn't under so much stress. Another one that might be interesting to consider is suspending when the user interacts with the page, scrolling or clicking around - tho some of this might be covered by by requestAnimationFrame |
I like the idea. Maybe I can use it as a fallback when
This is covered by |
I started experimenting with this. We will see how it goes.
Is some part of that open-source? I would love to take inspiration. |
My current idea is to use |
Currently, I have added only two priorities to the library —
background
anduser-visible
. I feel this won't be enough. However, I can't imagine all the use cases the library will be used in. This is why I am starting a discussion here, so together, we can find the right priorities.You can read more about priorities here and here.
The text was updated successfully, but these errors were encountered: