跳过导航
why does your React app load so slow?
0:00 / 1:00

why does your React app load so slow?

Aiden Bai

@aidenybai7.1万 位关注者

在 X 上查看
1,329 个赞下载原帖

82,433 次观看

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

11 条评论

评论来自 X (Twitter) 上的原帖

  • Robert Balicki (👀 @IsographLabs) 的头像

    @StatisticsFTW

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

    8 个赞

  • Etherspot 🐞 的头像

    @etherspot

    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 👇

    20,616 个赞

  • Nicolas Fry 的头像

    @NicolasBuilds

    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?

    4 个赞

  • nick 的头像

    @thecsguy

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

    5 个赞

  • helli0n.eth 的头像

    @helli0nEth

    its probably graphql

    2 个赞

  • Miloš Ristić 的头像

    @HeyRistaa

    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.

    1 个赞

  • Ethan_AI Marketer for 𝕏 的头像

    @EthanSynthMind

    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.

    1 个赞

  • František Heča 🦀 的头像

    @FrantisekHeca

    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

    2 个赞

  • Sahaj Jain 的头像

    @iamsahaj_xyz

    Prefetch. Prefetch prefetch prefetch

    1 个赞

  • PotatoDragon 的头像

    @Potato___Dragon

    Can you add a code snippet for this case?

    1 个赞

  • Sabre🚀🚀🚀 的头像

    @LuminaFabre

    Bro, do u have a youtube channel?