Load lottie animation onClick

Hi,

I am working on page speed optimizations for my website and I came to know that lottie is causing trouble with loading speeds. So I am thinking of some way in which I don’t load lottie animations on page load instead I load them after user clicks on their respective tabs.

Is it possible to load lottie on click or Is it possible to load lottie after the page is loaded. I am using Gatsby js. If yes please help me how.

Hey @akashranjan274

Sounds like our interactivity guide would help to solve your issue. Check out our interactivity players over here

2 Likes