News for hackers. Stuff that matters.
Re:Browsers are pretty good at loading pages by sergiomattei on Sunday July 21, 2019 @02:56PM (#20493013)
Slow? I'm quite sure the whole point of client side apps is for them to be substantially faster - and most are.
Re:Browsers are pretty good at loading pages by olliej on Sunday July 21, 2019 @03:09PM (#20493085)
I have yet to encounter a site where “client side navigation” is faster if there’s any real content.

Page losing is dominated by two things:

* the network. Browsers are written knowing that networking is terrible, so aggressively optimize their use of any data, including starting layout, rendering, and even JS before the page has completed loading. That’s not possible for client JS that is using XML and JSON data as neither will parse until the data is complete (this is part of why XHTML was so appallingly slow and fragile).

* JS execution - people love shoe horning JS into early page rendering. If you care about your page performance the first thing to do after networking is pushed all JS out of the path-to-initial-render. By design “client side” navigation blocks all content rendering on executing JS to build out the html/dom that a browser is much faster handling directly.

As a side benefit to making your site faster by not manually reimplementing things the browser already does for you and does better, you all get better back/forward, correct interaction with the UI, work correctly with any accessibility features that are operating, correct scrolling behavior, correct key handlers, ...

The benefit of client side rendering is you get to say you spent a lot of time doing something that already worked.

Re:Browsers are pretty good at loading pages by snek on Sunday July 21, 2019 @02:57PM (#20493016)
Did you read the article?
Re:Browsers are pretty good at loading pages by cj on Sunday July 21, 2019 @03:10PM (#20493094)
I read the article.

Perhaps I'm misunderstanding, but did they do this test on a 128 kilobit cellular Internet connection?

Re:Browsers are pretty good at loading pages by csande17 on Sunday July 21, 2019 @03:14PM (#20493108)
I made the video in the article using Chrome's "low-end mobile" throttling preset, which simulates a ~300 kbit connection IIRC. But I saw very similar behavior on my actual phone with an actual 128 kilobit connection in Canada.
Re:Browsers are pretty good at loading pages by cj on Sunday July 21, 2019 @03:17PM (#20493120)
Thanks for the clarification. Do the conclusions hold up when testing with a broadband network connection?
Re:Browsers are pretty good at loading pages by csande17 on Sunday July 21, 2019 @03:21PM (#20493135)
As I mention in the article, I'm not really able to tell the difference between old MDN and new MDN on the fast network connection I usually use. They both load pretty much instantly for me.
Re:Browsers are pretty good at loading pages by saagarjha on Sunday July 21, 2019 @03:24PM (#20493155)
I sometimes wonder if website authors actually test their pages on slow connections before declaring that they’ve improved the experience for them…
Re:Browsers are pretty good at loading pages by spankalee on Sunday July 21, 2019 @03:55PM (#20493308)
Do all MDN users have low-latency, high-bandwidth connections?
Re:Browsers are pretty good at loading pages by hrktb on Sunday July 21, 2019 @03:29PM (#20493173)
I’m a bit lost. How would using a broadband connection affect the relative speed between the two versions ?
Re:Browsers are pretty good at loading pages by cj on Sunday July 21, 2019 @03:40PM (#20493233)
For one, latency has a proportionally higher impact on "time to render" at lower connection speeds.
Re:Browsers are pretty good at loading pages by olliej on Sunday July 21, 2019 @03:01PM (#20493035)
I’m guessing no?