4 ms·
I don’t think blogs are a good example. How much complex logic do they have, and how many database queries and data processing do they do before they serve thei
by enraged_camel 7y ago
I don’t think blogs are a good example. How much complex logic do they have, and how many database queries and data processing do they do before they serve their content? Furthermore, how much interactivity do they have? Not much.
- TeMPOraL 7y agoI'd guess as much as 90% of pages out there - fetch a blob of data from the server, render it, and have most interactions not touch the server at all. You can view e.g. ecommerce sites as blogs with one post per combination of (search query, filter switches, page selected). This necessitates frequent shots to server, but the site otherwise transfers roughly a page's worth of data per viewed page. I've never seen an on-line shop that was made better by being an SPA, over an old-school page reload every click. Similarly discussion forums - there's Discourse that's arguably more gimmicky with its client-side magic; beyond that, if you want to see what would happen if you turned HN into an SPA, look no further than the dumpster fire the new Reddit design is.