Live data from Hacker News

Your single-page app is now a polyfill

itnext.io

1–10 of 164 posts

Re: Your single-page app is now a polyfill

#2
off-topic: how/why is medium still around with their very aggressive techniques? They started as a minimalist blogging platform, and once they acquired the content, they started putting paywalls in front of their users' content.

Re: Your single-page app is now a polyfill

#6
This is a good use case for service workers and is mentioned in this post from 2016: https://developers.google.com/web/updates/2016/06/sw-readabl...

It covers some pros and cos, the main advantages of using an app shell are

> whether your web app is best modeled as a single-page application (advantage: App Shell); and on whether you need a model that's currently supported across multiple browsers' stable releases (advantage: App Shell)

I think it's reasonable to argue that lots of sites that are SPA's don't need to be, if they can do this instead.

Re: Your single-page app is now a polyfill

#7
post #2

off-topic: how/why is medium still around with their very aggressive techniques? They started as a minimalist blogging platform, and once they acquired the content, they started putting paywalls in front of their users' content.

For better or worse, Medium is not just around, it’s growth is (apparently) accelerating: https://blog.medium.com/whats-around-the-corner-for-medium-b...

Re: Your single-page app is now a polyfill

#9
This is impressive and would work really well in a lot of sites, especially ones with static content.

However it misses two important reasons to use a single-page app:

1. SPAs allow for highly interactive interfaces with custom components, drag & drop, audio etc.

2. SPAs can cache UI state in the client. The alternative is to store it in a server side session specific to each client. This is possible, of course, but it will either be lost every time the server is restarted, or it will need to stored in the database. Sending UI state back and forth to the database is another increase in load on the database and network.

There is also the more general point about SPAs exchanging less data with the server so putting less stress on the network but that is touched upon in the post.

Post reply on HN