Skip to content
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

api to detect jank/choppy animations/dropped frames #223

Open
emattias opened this issue Jun 25, 2020 · 1 comment
Open

api to detect jank/choppy animations/dropped frames #223

emattias opened this issue Jun 25, 2020 · 1 comment

Comments

@emattias
Copy link

emattias commented Jun 25, 2020

Animations can be a great ux improvement but not if they are janky.

We have prefers-reduced-motion so the user can choose to disable animations, for whatever reasons they might have.

What about having an api to detect low performing animations?

With this api the app developer could ask the user if they want to enable prefers-reduced-motion or disable or decrease the amount of animations accordingly.

Another option might be that the browser detects alot of dropped frames and asks if the user wants to enable prefers reduced motion?

Not sure how to define that the performance is "low". 🤔 Maybe amount of dropped frames during transitions, animation frames etc. over a certain threshold/time period? Maybe the threshold logic can be set by the developer.

@birtles
Copy link

birtles commented Jun 26, 2020

Hi @emattias. I'm afraid this is the (mostly unmaintained) repository for a polyfill of a now-shipping API.

I think your suggestion might be something to propose to the Web Performance Working Group. I'm not sure how best to propose things to them however. Perhaps one of the following channels:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants