🎥 Make videos programmatically with React
`@remotion/lottie`: Don't reload images every frame
Jonny Burgere676d98d8161
diff --git a/packages/lottie/src/Lottie.tsx b/packages/lottie/src/Lottie.tsxindex 28103827f6..047bd2bcc4 100644--- a/packages/lottie/src/Lottie.tsx+++ b/packages/lottie/src/Lottie.tsx@@ -109,6 +109,14 @@ export const Lottie = ({'image') as NodeListOf<SVGImageElement>;images.forEach((img) => {+ const currentHref = img.getAttributeNS(+ 'http://www.w3.org/1999/xlink',+ 'href'+ );+ if (currentHref && currentHref === img.href.baseVal) {+ return;+ }+const imgHandle = delayRender(`Waiting for lottie image with src="${img.href.baseVal}" to load`);