by true_religion · 4y ago · 0 comments
They cache a lot of data, lazy load almost everything, and renders are much faster. Also, best of all, the experience when my internet goes down—which is often—is at least a partially functional page, instead of a total blank screen which is what HN and other sites that deliver full HTML or nothing gives me.
I cannot count the number of times I have lost a long well-typed comment on HN, because my internet went down while sending it and my browser apparently considers that to not be situation that it can reload the page on using the data it was going to send.
I think SPA's work better on low-data lines because they are apps and work just like other phone apps.
This is the SPA frontpage of my newest client:
https://i.imgur.com/7fbE4BH.png
And their frontend devs are proud of their achievement. Apparently it used to be worse.
Remember when imgur just hosted images?
However a static frontpage that loads 109 requests is prone to poor performance.
I was thinking of trying it out but when I read about its architecture could not believe that such a thing may be real.
Middleman and 11ty for me.
I just started consulting for them on another project so I'm light on details.
I'm sure we could lay out more scenarios where one approach is better than the other, and we should - this is the same story as always: Choose the right tool for the job. (And use that tool well - as other comments have mentioned, writing a bad SPA doesn't help anyone.)
I broadly agree; my problem with them is that a lot of the time I want to load the content into a new tab.
Look at Jira, middle-clicking any link to a ticket on any page opens that ticket in a new tab. That's exactly what I want - middle-click 5 times in 10s and have the five tickets open and ready for me.
What I get from (most) SPAs is the opposite - new content is loaded into the existing DOM, so I am unable to quickly middle-click all the entries I want to see and expect them to open in a new tab, fully functional.
Why are you not learning and adapting then? Write your novel in external editor, be it on phone or computer and paste, when ready.
I still have this habit from early days when my connection would go down randomly.