Earlier quoted context omitted.
Because it's faster. If you don't have to download all the content again, force the browser to re-render everything, then by design you just get the new content from the server faster, if you have to download anything at all. The idea exists since the introduction of AJAX. Furthermore, you don't lose state, which makes things much more simple. Imagine a simple image gallery. You just update the tag, update the URL wi…
> Furthermore, you don't lose state, which makes things much more simple. Or not... I think about infinite scrolls with no proper paging.
Browsers are pretty good at loading pages
131–140 of 328 posts
Re: Browsers are pretty good at loading pages
#132Not anymore, they don’t. Most of the time I get a huge lag when I hit the back button as all kinds of stuff reloads.
I’d prefer if the back button worked like going to a previous tab, where nothing has to reload, but they don’t work like that.
Re: Browsers are pretty good at loading pages
#133I don't get client side navigation. It's a worse experience in every way. It's slow, often doesn't support things like command-click, it usually breaks the back button, and even if it doesn't it breaks the restoration of the scroll position. The only thing worse is a custom scroll UI. Why do people try to reinvent the most basic features of a webbrowser? And if they do, why do they always only do a half-assed job at…
Because it's faster. If you don't have to download all the content again, force the browser to re-render everything, then by design you just get the new content from the server faster, if you have to download anything at all. The idea exists since the introduction of AJAX. Furthermore, you don't lose state, which makes things much more simple. Imagine a simple image gallery. You just update the tag, update the URL wi…
In my experience sites with these kinds of navigation are typically extremely slow with initial page loads taking anywhere from a couple seconds (bad) to 10-20-30 seconds, sometimes even a minute (on a 100 MBit/s connection) and subsequent navigations are often slow as well.
It can be hypothetically faster, because you can theoretically get away with less data transfers and less client work, but in practice the exact opposites materialize.
Re: Browsers are pretty good at loading pages
#134I don't get client side navigation. It's a worse experience in every way. It's slow, often doesn't support things like command-click, it usually breaks the back button, and even if it doesn't it breaks the restoration of the scroll position. The only thing worse is a custom scroll UI. Why do people try to reinvent the most basic features of a webbrowser? And if they do, why do they always only do a half-assed job at…
Re: Browsers are pretty good at loading pages
#135He lost me when he described Canada using a dictionary-like wording but also adding some pretty personal perspective. Describing an entire country as Socialist seems super opinionated to me. Client-side navigation is quite tricky to get right - since there is no definition of right. Browser back buttons and scroll positions between back and fourth page loads are not standards-based things and the only way to study th…
I thought HN filtered out emojis and other graphical characters?
Re: Browsers are pretty good at loading pages
#136Earlier quoted context omitted.
By "keyboard" I assume you mean TAB-key-based navigation (I don't know of any other included in the browsers)? If so, it looks to me that links are in fact TAB-stops, but they're not being highlighted. It's something that should be solvable with a CSS adjustment.
If the links are not highlighted by default, then tab navigation is basically non-existent since I cannot see where I'd be redirected and I personally bother to write custom CSS only for the websites I visit very often. Is there an actual reason to disable highlighting? It lowers usability and accessibility, but I'm not sure what do you get in return?
Also I use Vimium so I never noticed, since that mode of navigation is much faster.
Re: Browsers are pretty good at loading pages
#137I don't get client side navigation. It's a worse experience in every way. It's slow, often doesn't support things like command-click, it usually breaks the back button, and even if it doesn't it breaks the restoration of the scroll position. The only thing worse is a custom scroll UI. Why do people try to reinvent the most basic features of a webbrowser? And if they do, why do they always only do a half-assed job at…
It's justified if you run a web app that needs to maintain complex state between clicks, such as a text/graphical editor.
Re: Browsers are pretty good at loading pages
#138The current generation of less-experienced developers tends to default to building every project in React, even if there's no tangible benefit to accepting this complexity. It's unpopular to express, but the truth is that many junior devs don't know how to do it any other way. I don't blame them for this, because they literally haven't been doing it long enough to have mastered multiple techniques. Managers go with i…
I wouldn’t say it’s easier to build in these SPA frameworks nor harder. Attention to detail is something people recognize or learn over time.
Re: Browsers are pretty good at loading pages
#139> Most web browsers also store the pages you previously visited so you can quickly go back to them. Not anymore, they don’t. Most of the time I get a huge lag when I hit the back button as all kinds of stuff reloads. I’d prefer if the back button worked like going to a previous tab, where nothing has to reload, but they don’t work like that.
Hell yes they do, it's the websites that make it impossible most of the time. Try it on a standard website that doesn't use many megabytes of resources (which it would evict for memory reasons). I notice it sometimes when using such websites, it's amazing how fast it feels compared to even so much as a 304 Not Modified round-trip.
Re: Browsers are pretty good at loading pages
#140He lost me when he described Canada using a dictionary-like wording but also adding some pretty personal perspective. Describing an entire country as Socialist seems super opinionated to me. Client-side navigation is quite tricky to get right - since there is no definition of right. Browser back buttons and scroll positions between back and fourth page loads are not standards-based things and the only way to study th…
> He lost me when he described Canada using a dictionary-like wording but also adding some pretty personal perspective. Describing an entire country as Socialist seems super opinionated to me. I think this was pretty clearly supposed to be a joke. Author is probably American - the joke is that healthcare and free (very slow) internet are considered socialist by Americans.
He goes to college here in the US (but I think he might have lived in Canada in the past?)