|
|
|
|
|
by izym
3520 days ago
|
|
Sure it could. But this is also about providing a better user experience. Being able to automatically split the bundle into parts, the most needed of which is loaded at first and the rest then loaded afterwards in the background using a service worker, means that navigation will be far more snappy and provide better feedback to the user. Rather than waiting for the HTML to be downloaded when a link is clicked, most of the UI can be displayed while a smaller payload is downloaded. Obviously if your content is 100% static and your target group is people who only have 2G available, this might not be the best choice. > then things like the back button after scrolling through the blog would work. What do you mean? > Why try to outsmart the browser? Not sure how this is outsmarting the browser. |
|
Regarding the back button, you can see the mis-behavior here: 1) Go here: https://zeit.co/blog 2) Scroll all the way down to the bottom 3) Click a link 4) Click back
Expected: Page returns to exactly were you left off Actual: You are scrolled to a random blog post
My overarching question is why any type of SPA is needed for a site like zeit.co?