| ▲ | panta 12 hours ago |
| The view of web pages as apps and browsers as runtime environments/OSes is reasonable but in my opinion it even reinforces the idea that it should be the browser duty to contain bad behavior from web apps/pages. Browsers are well positioned to do so, as they know exactly which resources are used by each tab , and how those grow over time. Also browsers already treat web content as untrusted (sandboxing, isolation), so it would be a natural next step to extend that approach to resource usage. It would match how Operating Systems work, where it's the OS acting as an "arbiter", not the userland application. |
|
| ▲ | paulluuk 11 hours ago | parent | next [-] |
| I would love it if all the major browsers would agree on this. "Every tab is only allowed up to 100mb of memory, if a page needs more than that, optimize it." - Though a setting from the user to allow it for, say, online videogames or streaming sites or something, would be a good idea. |
| |
| ▲ | Wowfunhappy 4 hours ago | parent | next [-] | | I remember when I was a Safari user, any instance of Slack I had open would get reloaded after 5 – 10 minutes with the message "this web page was reloaded because it was using two much memory", interrupting whatever I was doing. My computer had many gigabytes of memory, so I always found this very annoying. Like, yes, Slack is a giant memory hog and that really sucks, but I can't exactly do anything about that. Maybe Google would have the clout to actually enforce a memory limit like this, but I'm not sure whether anyone else does at this point. Apparently even Apple wasn't big enough. | |
| ▲ | copirate 11 hours ago | parent | prev [-] | | Using more RAM could be a permission request. | | |
| ▲ | YmiYugy 10 hours ago | parent | next [-] | | 1. It would break a very large number of existing sites.
2. The vast majority of users aren’t able to make an informed decision.
3. Browsers already have heuristics to inform users about misbehaving tabs and suspend them.
4. It hurts performance. More pressure on gc, more cache thrashing | | |
| ▲ | brigandish 8 hours ago | parent [-] | | It’s all about the UI. The browser vendor could make the informed guess and say “we think this web page is using too many resources”. Certainly Google could ascertain this during its spidering. Browsers already have several similar interventions e.g. no https, script taking too long etc. Regardless, if it improved the experience then it becomes like Firefox was in the beginning, and Chrome in the beginning, a better performing competitor about to eat market share. |
| |
| ▲ | throwaway2037 9 hours ago | parent | prev [-] | | Why do you think none of the major browsers have already done this? | | |
| ▲ | lo9i 7 hours ago | parent | next [-] | | Agree, most people just want to visit a site and use it. Don't want to be bother with permission requests. You read the permission request the first 2, 3 times. Then just allow forever and you are back to the same scenario | |
| ▲ | dotancohen 9 hours ago | parent | prev [-] | | Because users would have no idea what to do. I think the Corvette once had a special key for driving with enhanced performance, or maybe the key had to be turned to another position, I don't remember which. That caused so many service calls that later 'Vettes dropped it. And in the case of the Corvette, we're already talking about an enthusiast community that ostensibly actually takes an interest. Not so with people who call their browser "the internet". | | |
| ▲ | lproven 7 hours ago | parent [-] | | > Because users would have no idea what to do. Agreed. Nice idea but it's too much. |
|
|
|
|
|
| ▲ | lukan 11 hours ago | parent | prev [-] |
| It is non trivial to determine if ressouces a site is using is reasonable or not. A web game may use lots of ressources and will crash if the OS suddenly decides to take some memory away. |