initLottieLoader(isMainColor: boolean) {
return {
path: isMainColor ? 'assets/Dots-animation-w200-h200-white.json' : 'assets/Dots-animation-w200-h200-mustard.json' ,
autoplay: true,
loop: true,
};
}
Now every time when I am clicking on the button I have a lot od GET requests on network. How can I cache json?
Here Angular 6 but this bug is present since I use lottie (1 yer, angular 5).
JSON are not cached and re-requested every time (*each time a ngIf resolve to true ... ) , which is a problem.
Hi please check my init config method