News for hackers. Stuff that matters.
Re:The Page with No Code by jxf on Saturday January 21, 2023 @11:18AM (#34467457)
> Plus, we have a lot of processing power on the client side, which should be utilised.

It would be one thing if this was a matter of consent. It isn't. It uses your resources without your permission. Leaving JS on is not permission to consume as much CPU as you want (otherwise, every website would also run a crypto miner).

> If a site uses it badly, just don't go to that site.

This sort of blitheness is very surprising to me. What if we're talking about a passport site, or an unemployment benefits site, and so on? Why is the onus on the user and not the developer?

Re:The Page with No Code by ornornor on Saturday January 21, 2023 @11:19AM (#34467465)
Well said.
Re:The Page with No Code by googlryas on Saturday January 21, 2023 @12:08PM (#34467874)
There needs to be an API in the client for specifying how much CPU can be used. Clearly things like crypto mining in the bg are considered abuse but what about just poorly written js? Clients should be able to police the code they execute.
Re:The Page with No Code by osrec on Saturday January 21, 2023 @01:56PM (#34469103)
The choice is with the user. The onus is on the developer to build something good and efficient, otherwise people will not use the product.

If the user is forced to use a terrible government website (as we all are from time to time), disabling JS will fix absolutely nothing there. If anything, it might make things worse, as there will be a bunch of things you simply cannot do without JS (e.g cropping a photo to upload to a passport site - how would you even draw out the crop region without JS?!)

JS is not the problem. Crappy developers and corrupt officials who award key contracts to crappy developers is the problem.

Re:The Page with No Code by speed_spread on Saturday January 21, 2023 @02:42PM (#34469584)
It's the ads that are the problem. A crappy website is sad but fixable. At least it provides some value.

Ads are are a nuisance race to the bottom.