Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Lottie animation in loading.tsx

69,961 görüntüleme • 1 yıl önce •via X (Twitter)

12 Yorum

Chris Eagle profil fotoğrafı
Chris Eagle1 yıl önce

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

SmartMove profil fotoğrafı
SmartMove1 yıl önce

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

Bob Obringer profil fotoğrafı
Bob Obringer1 yıl önce

Except ouch

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

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

Sam Finton profil fotoğrafı
Sam Finton1 yıl önce

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?

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

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

Ali H profil fotoğrafı
Ali H1 yıl önce

Neat loading component!

xiaoyao profil fotoğrafı
xiaoyao1 yıl önce

cool

Simplr profil fotoğrafı
Simplr1 yıl önce

Very Cool!

Hubert Ryan profil fotoğrafı
Hubert Ryan1 yıl önce

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

Shadi || شادي 🟣⚫ profil fotoğrafı
Shadi || شادي 🟣⚫1 yıl önce

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

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

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

Benzer Videolar