Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

why does your React app load so slow? the reason might be "waterfalls"

82,350 Aufrufe • vor 1 Jahr •via X (Twitter)

11 Kommentare

Profilbild von Robert Balicki (👀 @IsographLabs)
Robert Balicki (👀 @IsographLabs)vor 1 Jahr

Folks on this thread might be interested in checking out Relay, which solves this quite well (ie with good DX)

Profilbild von Etherspot 🐞
Etherspot 🐞vor 2 Jahren

Want to build a Web3 app without all the overhead costs? Try TransactionKit, a React toolkit that makes building dApps easy. Integrate cutting-edge account abstraction features in just a few clicks. Try it today 👇

Profilbild von Nicolas Fry
Nicolas Fryvor 1 Jahr

So the bigger question is- what’s your preferred method of pulling them out of the other components? Using something like zustand and storing the fetches in there and calling it at the top level and using selectors at the lower level?

Profilbild von nick
nickvor 1 Jahr

The waterfall development method is bad. Don't let anyone tell you otherwise

Profilbild von helli0n.eth
helli0n.ethvor 1 Jahr

its probably graphql

Profilbild von Miloš Ristić
Miloš Ristićvor 1 Jahr

In nextjs app, I like approach with prefetchQuery on page.tsx with hydration boundary. That way I have paraller calls on server and just using them later on in components inside.

Profilbild von Ethan_AI Marketer for 𝕏
Ethan_AI Marketer for 𝕏vor 1 Jahr

Slow loading in React can often be due to 'waterfall' requests, where one resource loads after another. To fix this, try code splitting and lazy loading components. This way, you can load only what's needed upfront, improving initial load times and user experience.

Profilbild von František Heča 🦀
František Heča 🦀vor 1 Jahr

hmm, in php we have waterfalls on the server (which you now could have also with rsc), but i don't understand what all these last years were spa guys working on, if after 15 years of fw working hard on features, they start to slowly solve this

Profilbild von Sahaj Jain
Sahaj Jainvor 1 Jahr

Prefetch. Prefetch prefetch prefetch

Profilbild von PotatoDragon
PotatoDragonvor 1 Jahr

Can you add a code snippet for this case?

Profilbild von Sabre🚀🚀🚀
Sabre🚀🚀🚀vor 1 Jahr

Bro, do u have a youtube channel?

Ähnliche Videos