Next.js Discord

Discord Forum

Animated svg inside suspense fallback

Unanswered
PepeW posted this in #help-forum
Open in Discord
I'm using a loader component inside a fallback of a suspense component:
    <Suspense fallback={<Loader />}>
      <SomeComponent />
    </Suspense>


Inside the Loader I'm using an animated svg:
https://icon-sets.iconify.design/line-md/compass-loop/

The problem is that the svg is not displayed.
I've tried with the same icon but not animated and everything is working fine.

I've read that the browser may be blocking the svg animations while it's loading but I'm not sure about that.

0 Replies