Skip to content

🎥 Make videos programmatically with React

Revert "`@remotion/lottie`: Don't reload images every frame"

Jonny Burger2556e6cbd573
diff --git a/packages/lottie/src/Lottie.tsx b/packages/lottie/src/Lottie.tsx
index 047bd2bcc4..28103827f6 100644
--- a/packages/lottie/src/Lottie.tsx
+++ b/packages/lottie/src/Lottie.tsx
@@ -109,14 +109,6 @@ 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`
);