Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cached json in Angular 5 #32

Open
tlaskowski opened this issue Jul 30, 2018 · 1 comment
Open

Cached json in Angular 5 #32

tlaskowski opened this issue Jul 30, 2018 · 1 comment

Comments

@tlaskowski
Copy link

tlaskowski commented Jul 30, 2018

Hi please check my init config method

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?
@jscti
Copy link

jscti commented Oct 22, 2018

+1 that

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants