You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Animations: consider dropping CssKeyframesDriver in favor of WebAnimationsDriver #44520
Which @angular/* package(s) are relevant/releated to the feature request?
animations
Description
Currently we have 2 implementations of the animations driver:
CssKeyframesDriver
WebAnimationsDriver
We select which one to use in this code based on the presence of the animate function in an element's prototype (see here). Since IE is no longer supported, the animate function should be available in all supported browsers, so it looks like we can drop the CssKeyframesDriver in favor of WebAnimationsDriver.
The biggest benefit that we'd have is less code in app bundles, the way those classes are referenced is non-tree-shakable (see here): both classes would be retained in an app bundle when the BrowserAnimationsModule is used. That'd probably save a few KB.
If we decide to do that, it'd be great to implement and land the tooling to measure the bundle size and retained symbols first, see #44437. In this case we'd be able to measure the impact of this change.
Reacted by Front-end developer, Dario Piotrowicz, Chellappan, Adem Simsek, rafal.wojdowski, boynet, Lars Rye Jeppesen, Oto Dočkal, Ertunga Bezirgan, LanderBeeuwsaert and 3 more
This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.
You can find more details about the feature request process in our documentation.
Activity
angular-robot commentedon Dec 17, 2021
This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.
You can find more details about the feature request process in our documentation.
angular-robot commentedon Jan 25, 2022
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.
Find more details about Angular's feature request process in our documentation.
perf(animations): remove no longer needed CssKeyframes classes (angul…
perf(animations): remove no longer needed CssKeyframes classes (#44903)…
angular-automatic-lock-bot commentedon Mar 3, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
perf(animations): remove no longer needed CssKeyframes classes (angul…