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

DOM benchmark is using Main Thread animations #69

Open
bramus opened this issue Jan 25, 2024 · 0 comments
Open

DOM benchmark is using Main Thread animations #69

bramus opened this issue Jan 25, 2024 · 0 comments

Comments

@bramus
Copy link

bramus commented Jan 25, 2024

Because of the way the DOM benchmark is written – by constantly updating the style value in a rAF – these updates are performed on the main thread and are constantly recalculating styles.

Consider running the animations via WAAPI Animations or CSS Animations instead, so that the browser can try and run these on the compositor.

I have done so here and can PR these changes:

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

1 participant