Optimizations tradeoff

As the title says, what are the trade offs when loading components lazily? I haven't seen any in my application yet, but my theory is that the tradeoff, most of the time, would be aesthetical? For example, the components would pop into existence if I don't design it well and it's not gonna look good
2 Replies
isaac_way
isaac_way2y ago
The tradeoff as far as I know is just that the user is going to get a faster first load but after that is waiting on round trips to the server for any lazy loads. If your lazy loaded components need to fetch data after loading then you have a request waterfall as well. If the initial load is fast enough already, then it’s probably not a good use of time to do lazy loading and could make the UX worse. If the initial load is too slow then yeah you may want to use it.
deforestor
deforestorOP2y ago
Alright so just common sense Thank you, man
Want results from more Discord servers?
Add your server