News for hackers. Stuff that matters.
Re:I don't want to do front-end anymore by rini17 on Tuesday February 09, 2021 @03:21PM (#26081992)
But that does not mean expectations of web users have to be thrown under the bus. Such as, you click on something by mistake and try to fix it by using Back button. With facebook nope, if you forgot to open the link in a new tab, the original view is irretrievably lost. You sometimes can't even scroll back to review something, whole page gets reloaded and it vanishes.

Supposedly one-page apps are meant to improve latency and interactivity, but FB is slow as molasses and frustrating regardless.

Re:I don't want to do front-end anymore by goodoldneon on Saturday February 13, 2021 @12:44PM (#26125103)
FB's terrible back functionality is their own fault since libraries like React Router give you a ton of control over back/forward behavior.

As for FB's slowness, SPAs are hard to do well when you have a lot of live data all over the page. You can get clever with optimistic backend calls and caching, but in the end you still have frequent state changes.

Users want infinite scroll to be fast, so you need over-eager loading _in case_ they scroll. Add over-eager loading all over the page (in case they click on a user profile, in case they click on FB Marketplace, etc.) and you have a recipe for a CPU hog.