News for hackers. Stuff that matters.
Re:Using the Web for a Day with JavaScript Turned Off by realusername on Tuesday May 08, 2018 @10:10AM (#17020976)
> Back in 2006/7 I remember we'd use "progressive enhancement" to make a site work without JavaScript and then add JavaScript enhancements for those who had JS enabled.

I still do that on my case, a good 95% of the features I develop work without Javascript. One additional benefit is that if your JS crash for any reason, most of the things are still working.

Re:Using the Web for a Day with JavaScript Turned Off by brightball on Tuesday May 08, 2018 @10:31AM (#17021123)
I continue to do it as well. Web frameworks make it so easy it’s hard to justify not doing it.

There are so few web apps that actually need the SPA treatment. It’s a lot simpler to ignore the tool chain headaches that come from committing to the SPA when you don’t need it and gracefully degrade.

It’s so rare that I actually run into an SPA that doesn’t feel slow...I just wonder why people bother sometimes.

Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @10:52AM (#17021275)
> It’s so rare that I actually run into an SPA that doesn’t feel slow...I just wonder why people bother sometimes.

It's fashion over function on the business side, and CV-driven development on the frontend people's side.

Re:Using the Web for a Day with JavaScript Turned Off by ropeadopepope on Tuesday May 08, 2018 @03:49PM (#17024219)
> It's fashion over function on the business side

Oh, there's a function to it. The 7 year tech cycle generates huge amounts of money for everybody involved. Consultants and consulting companies get a nice influx of billable hours every time the tech changes. Software companies pay to upgrade to the coolest tech because it's relatively cheap compared to the amount of money it generates. Users like it because with each tech upgrade comes an increase in convenience and graphical design. And, in some ways, having the latest version of the hot apps is another way of keeping up with the Joneses. Everybody's happy except for the power users. They tend to get left out in the cold.

Re:Using the Web for a Day with JavaScript Turned Off by SquareWheel on Tuesday May 08, 2018 @11:17AM (#17021490)
I've never even heard of Javascript "crashing". Is that a thing that happens?
Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @11:29AM (#17021621)
I've seen it plenty of times. Something triggers a JS execution bug that breaks the entire script. Suddenly, the site is dead. If you're lucky, it might start working after reload. If not, you'll have to wait until developers figure out something is wrong.

Causes vary. Sometimes it's a resource that fails to load. Sometimes it's a race condition. Sometimes, it's just dumb coding[0]. The more JS is put on site, and the more the site depends on it, the more likely it is to happen.

--

[0] - Like one of the large food order sites in my country that won't let you submit a form if it contains a number in the comment box - the very comment box you're supposed to use to add details like floor number. The problem persisted for the last couple times I used them (in a space of several weeks), so I wonder if they even realized they have a problem and are losing business because people see the checkout form broken without explanation, and order elsewhere.

Re:Using the Web for a Day with JavaScript Turned Off by realusername on Tuesday May 08, 2018 @11:21AM (#17021535)
If you have a big website with lots and lots of different kind of visitors you either have:

- Visitors with a bandwidth so low it takes a long time for the JS to download completely (so making it work in the mean time helps a lot).

- Visitors with outdated browsers where your JS will stop on some unsupported feature you forgot to polyfill (I usually add a polyfill after when I see it but in the mean time it works), that's what I meant by "crashing", it never works 100% of the time in 100% of the cases, it depends on the browser as well.