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.
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.
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.
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
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.
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".
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
I was thinking exactly the same. Either: You have a fixed setting per page, or you get on-demand pop-ups from your browser(!) that asks if it can use more memory for this page. It would become exhausting very quickly. The purpose of my question was to help the original asker if this was really a good idea. Imagine there was a fixed setting per page... and your online banking/brokerage website has a bug that causes 2x memory usage. Suddenly, the page stops running with an error from the browser: Out of memory. That would be so annoying.
None of the major browsers have done this because they are prisoners of web devs, and now completely ignore user satisfaction to drive developer satisfaction.
My web browser runs on my computer and should do what I tell it to. Nobody else, just me.
The minute someone releases a browser that works that way they'll have whatever money they want to charge me for it. For now even Firefox does all sorts of anti-consumer nonsense and enforces all sorts of client side 'rules' it never should have so webdevs can protect their "rights" at my expense.
In the early days of the internet this kind of made sense. People had the "if devs don't trust the internet nobody will use it" argument. Now I think it's time to say "If users can't trust their own computers they won't use them."
I'm tired of living in Sagans demon haunted world.
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.
Actually Safari is the only browser with that clout because it's the only one available on iOS and for some reason people still care about iPhones. If Google did this they'd probably just lose back to Firefox and Edge.
Replies (3)
Replies (2)
Replies (2)
Replies (1)
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.
Replies (1)
They got everyone to switch to https by putting a big red cross through http://
Replies (3)
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".
Replies (1)
Agreed. Nice idea but it's too much.
Replies (1)
My web browser runs on my computer and should do what I tell it to. Nobody else, just me.
The minute someone releases a browser that works that way they'll have whatever money they want to charge me for it. For now even Firefox does all sorts of anti-consumer nonsense and enforces all sorts of client side 'rules' it never should have so webdevs can protect their "rights" at my expense.
In the early days of the internet this kind of made sense. People had the "if devs don't trust the internet nobody will use it" argument. Now I think it's time to say "If users can't trust their own computers they won't use them."
I'm tired of living in Sagans demon haunted world.
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.
Replies (1)