Answer the question
In order to leave comments, you need to log in
How to reduce the CPU load when using animation on the site?
The site has an animation, it is made in AE and converted by the bodymovin plugin into a json file (+ folder with png). I connected it to the site according to the tutorial, I’m not strong at all in JS, I open it and see the CPU load of 50-70%. The json file weighs 800 kb!, I don’t understand who is to blame, maybe I didn’t connect it correctly and use this script? I posted an example on my hosting. animate.d58147.hostru06.fornex.host
<body>
<div class="wrapper">
<div id="animate" class="animate"></div>
</div>
<script src="js/bodymovin.js"></script>
<script src="js/main.js"></script>
</body>
bodymovin.loadAnimation({
container: document.getElementById('animate'),
render: 'svg',
loop: true,
autoplay: true,
path: 'js/virtualization.json'
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question