3 ms·
Seriously. It seems pretty reasonable to allow a web page a total amount of processing that is something like 100% CPU or GPU for 5 seconds. (E.g. can be 25% fo
by crazygringo 1y ago
Seriously. It seems pretty reasonable to allow a web page a total amount of processing that is something like 100% CPU or GPU for 5 seconds. (E.g. can be 25% for 20 seconds.) And beyond that it gets throttled to 3% CPU cumulative max for however long it's been open so far.
And make that the default for popular browsers, so sites are forced to be efficient or else be super super janky and stuttering. And allow a permission for unrestricted processing that things like WebGPU demos or games can ask for.
- HWR_14 1y ago100% of the CPU for 5 seconds seems unreasonably long for a random webpage.
- crazygringo 1y agoFor a news article, absolutely. But I think it needs to be able to handle JavaScript-heavy webapps too. My suggestion wasn't really about promoting maximum best practices, but just avoiding total runaway excess.
- ajsnigrutin 1y agoMS word on a 133mhz pentium and 16mb of ram needed less than 5s to start. Websites don't need that much resources and should be optimized.... if somehow web developers could read, maybe they'd start doing that.
- gf000 1y agoThere are full on CAD apps nowadays on the web. Also, this "looking down" on such a huge group of people is pretty questionable behavior.
- deno 1y agoThis isn’t unsolvable. A CAD app or similar could ask for permission to use extra resources. There’s already one for storage, extending this to CPU and MEMory is not far fetched.
- wizzwizz4 1y agoThere were full-on CAD packages for 133MHz Pentiums.
- vanviegen 1y agoYes, and they had perhaps 1% of the features you'd expect these days. Though of course, they were the important 1%..
- ajsnigrutin 1y agoThere were those apps on pentium 133mhz era computers too, even started in faster tha 5 seconds. For 99% of the people, word 97 was good enough then and is still good enough now to do whatever they need. They can literally still use it today. (yes yes, docx compatibility, i'm just making an example). Web stuff is one of the few things where the amount of useful data on an eg. weather report site (webmail, news site, bus timetable site,...) hasn't changed, the cpu requirements have gone way way higher for no useful reason (except to serve more ads), and the users can't use the "old versio" of the site anymore. It's literally gigabytes of ram and multiple seconds of 100% cpu usage to service 5kB of article text and a 50kB article photo.
- hafeoz 1y agoFirefox already has a monitor module that AFAIU tracks UI stalls and prompts the user to stop the website if it hangs for a long period [1]. It probably can be further developed to also track resource consumption and show a warning if some threshold is reached. [1]: https://searchfox.org/mozilla-central/source/browser/modules/ProcessHangMonitor.sys.mjs https://searchfox.org/mozilla-central/source/browser/modules...