3 ms·
The answer is aggressive prefetching. How much to prefetch depends on each UI structure and the weight of the prefetched components.
by xixixao 7y ago
The answer is aggressive prefetching. How much to prefetch depends on each UI structure and the weight of the prefetched components.
- RussianCow 7y agoNot only this, but proper loading states for anything that is happening asynchronously. I am so sick of web apps that show absolutely no sign that a request is in progress.
- strbean 7y agoThat is what "Suspense for Data Fetching" is going to help with. It is already perfectly possible to handle data fetching nicely, it just isn't incredibly easy. When Suspense for Data Fetching goes stable, it will be trivial to do right.
- JMTQp8lwXL 7y agoThat would help movement between pages in a single-page application, though cold boot times will still be less than desirable. If I immediately go to the SPA, and then navigate from page A to page B and the prefetching hasn't completed yet, it can be a jarring experience. I've occasionally clicked on the wrong thing in a UI because the website repainted as I clicked, causing the DOM to shuffle around considerably. New Reddit seems to be a good example of this problem today.