-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Picture loaded twice in lottie-web #1317
Comments
Hi, how are you changing them? |
I edit the content manually. |
lottie preloads images before starting the animation. |
Here is an example https://codepen.io/wrbing/pen/VEzYBd |
In Android webview load a html page . when lottie-web preload a image , it may just load a half and then turn fail, in this circumstance, android device will cache the broken image(it just load a half). in the second time load image (code: this.innerElem.setAttributeNS('http://www.w3.org/1999/xlink','href',assetPath);) it will load the braken cached image. how could i disable preload |
Bringing this back - this causes extra problems when using elements like sliders, which need to make copies of the containing components to allow for infinite scrolling. This could mean assets being loaded up to six times (!!) instead of the two described here. How might one disable preloading so the image is only loaded once, and then cached properly by the browser? |
I change the pictures in json file from base64 to cdn url, then strange things happened: all the pictures load twice.
The text was updated successfully, but these errors were encountered: