Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Lottie animation in loading.tsx

69,961 Aufrufe • vor 1 Jahr •via X (Twitter)

12 Kommentare

Profilbild von Chris Eagle
Chris Eaglevor 1 Jahr

You’ll need a loading component for your loading component if you’re using Lottie

Profilbild von SmartMove
SmartMovevor 1 Jahr

Winter move? Cozy up to your favorite TV & movies. #moving #newhome #internet #tv #streaming

Profilbild von Bob Obringer
Bob Obringervor 1 Jahr

Except ouch

Profilbild von Alex Sidorenko
Alex Sidorenkovor 1 Jahr

Yep, it comes with a cost. Lighter than rendering gif, but still

Profilbild von Sam Finton
Sam Fintonvor 1 Jahr

We do this, but find that even a simple lottie animation takes long enough to load that sometimes it doesn't even appear before the page switches. Was going to make it a server component but lottie doesn't seem to work server side. Might just use gif, any better ideas?

Profilbild von Alex Sidorenko
Alex Sidorenkovor 1 Jahr

Try gif, but they need time to load as well. I'd use Lottie animations only for something that predictably takes a long time to load (e.g. non-streaming AI response) and use CSS animations (spinners/skeletons) for everything else

Profilbild von Ali H
Ali Hvor 1 Jahr

Neat loading component!

Profilbild von xiaoyao
xiaoyaovor 1 Jahr

cool

Profilbild von Simplr
Simplrvor 1 Jahr

Very Cool!

Profilbild von Hubert Ryan
Hubert Ryanvor 1 Jahr

Ow, nice. Now I follow you and I believe that we'll learn a lot.

Profilbild von Shadi || شادي 🟣⚫
Shadi || شادي 🟣⚫vor 1 Jahr

so cool 🔥🔥 Could you please share from where you obtained the dotlottie-player component?

Profilbild von Alex Sidorenko
Alex Sidorenkovor 1 Jahr

You can get it from Pick animation, click download, select "hand-off"

Ähnliche Videos