4 ms·
> I can't stand how it always reloads each time I click on something. And yet here you are, using HackerNews just about every day, which works exactly the same
by oldandboring 3y ago
> I can't stand how it always reloads each time I click on something.
And yet here you are, using HackerNews just about every day, which works exactly the same way. No SPA. No 'forever loading', just a classic, fast SSR webapp that treats individual pieces of content as documents, just like how the web was designed to work.
- j1elo 3y agoTo play Devil's advocate, while I agree with you, in reality it happened multiple times (last one, 2 minutes ago while writing a comment in other HN entry) where I am writing the response but then would like to have a peek at the chain of comments I'm responding to. Using the phone that's very annoying. I have to long press on the entry's link on the header, open in a new tab, recheck the message trail, and go back to the first tab to end writing. So simoly as that, I could think of lots of times where a SPA-style dropdown editor box inserted in the conversation view, would be more useful than the current HN's reply page. If the reply page contained the whole discussion, though, the problem would be equally solved too. So I'm not saying that an SPA would be 100% better, just mentioning an example that occurred to me.
- throwaway60707 3y agoThis is a forum, not a management system where I need to open dozens of listings and hundreds of different detail pages and make modifications there. It also doesn't bother me much on here because HN is much faster than these systems - no wonder, since it's just a forum. But try updating the details of 50 employees, each separated into 5 subpages, when you need to wait 750ms to have each page load. And you need to load that page multiple times - first to get into the detail, then to put it into "edit" mode, then to save it - and then you can switch to a different subpage of the detail.
- gunapologist99 3y agospeed has nothing to do with the problem that you originally described. an AJAX call can take 750ms also.
- throwaway60707 3y agoThere's no AJAX call in a SPA if all I did was close a detail side-pane to get back to the listing. The AJAX call goes on in background if I saved a modification and I can continue to use the app as it runs. And when I open a detail, at least I'm not watching the whole damn app reload and reconstruct itself from scratch for the 1000th time, and need to download just the data and not the whole bloated HTML mess.
- happytiger 3y agohttps://laravel-livewire.com/ https://laravel-livewire.com/
- JohnFen 3y ago> when you need to wait 750ms to have each page load Wait, what? If it's taking most of a second for a page to load, then that's the problem, not that it isn't a SPA.
- throwaway60707 3y agoWhat can I do? Do you have a suggestion for a different HRIS? All of these that have all needed features are bloated OOP apps in PHP...
- hliyan 3y agoAmdhal's Law would suggest that much of the 750ms latency is likely attributed to I/O operations (mainly DB ops) and not CPU. Also, without knowing anything about your setup: upgrading to PHP 8 and/or enabling opcode cache may help. All that said, my original quibble was with development time, not run time overheads.
- happytiger 3y ago750ms transaction times and it’s “the language” that’s the problem? Not bloody likely.
- iamphilrae 3y agoBeauty of that though is that you can CMD+click on each one and open all 50 into separate tabs, then work on each one whilst the others load in the background. Want to cross-reference? Easy, just shift a tab to a new window. All likely not possible in an SPA, either because links don’t work like links, or because it’ll muck up state.
- throwaway60707 3y agoYou can do that with a SPA. All SPAs I made and most of the ones I use support it just fine.
- com2kid 3y agoLet's be clear, Hacker News is likely the fastest SSR websites that most people have ever used.