Instead of animating “straight ahead” and potentially doing expensive calculations on every single frame precalculate the animation dynamically and let it play out cheaply.
The source map explorer determines which file each byte in your minified JS came from. It shows you a treemap visualization to help you debug where all the code is coming from.