Live data from Hacker News

Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

extremetech.com

341–350 of 419 posts

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#341
post #289

Earlier quoted context omitted.

Just enable click-to-play in chrome, on media plugins. Sound only ever really auto-plays from flash ads and such (though these days its possible with HTML5 and this likely won't stop such audio/video). Its an extra click and can make some sites a bit more difficult (e.g. beatport, tries to hide its flash so you cant click it to enable it), but it works for me.

Click-to-play on plugins often breaks sites that use Flash ads as overlays. The ads often have the "close this ad" in the Flash code itself, making it impossible to kill the ad layer without activating the plugin. (In my more cynical moments, I wonder whether this behavior is by design.)

> making it impossible to kill the ad layer

Use the context menu. There is an option to "hide" (delete) the ad there.

Another option is this bookmarklet (only works if the element that should be deleted isn't in an iframe):

    javascript:(function(){var e=document.body.style.cursor;document.body.style.cursor="crosshair";var t=document.createElement("div");var n="border:1px solid #3280FF;background-color:rgba(50,128,255,0.5);position:absolute;z-index:2147483647;display:none;";var r="pointer-events:none;";var i="transition:width 60ms,height 60ms,left 60ms,top 60ms;";n+=r+"-webkit-"+r+"-moz-"+r;n+=i+"-webkit-"+i+"-moz-"+i;t.setAttribute("style",n);document.body.appendChild(t);var s=null;var o=function(e){var n=e.target;if(n!==s&&n.parentNode){var r=n.getBoundingClientRect();var i=document.documentElement;var o=document.body;var u=i.clientTop||o.clientTop||0;var a=i.clientLeft||o.clientLeft||0;var f=window.pageYOffset||i.scrollTop||o.scrollTop;var l=window.pageXOffset||i.scrollLeft||o.scrollLeft;var c=l-a+r.left-1;var h=f-u+r.top-1;t.style.display="block";t.style.left=c+"px";t.style.top=h+"px";t.style.width=r.width+"px";t.style.height=r.height+"px";s=n}};var u=function(n){document.body.style.cursor=e;if(n.target.parentNode)n.target.parentNode.removeChild(n.target);if(t.parentNode)t.parentNode.removeChild(t);window.removeEventListener("click",u,false);window.removeEventListener("mouseover",o,false);n.stopPropagation();n.preventDefault()};window.addEventListener("mouseover",o,false);window.addEventListener("click",u,false)})();void(0)

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#342
post #2

People are using µBlock now for precisely this reason. https://github.com/gorhill/uBlock/wiki/%C2%B5Block-vs.-ABP:-... https://chrome.google.com/webstore/detail/%C2%B5block/cjpalh... https://github.com/gorhill/uBlock

thanks for pointing out :)

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#343

Earlier quoted context omitted.

Together with umatrix ( https://github.com/gorhill/uMatrix/ ) are the best chrome extensions Since I went back to firefox those are the only extensions I really miss, there is policeman ( https://github.com/futpib/policeman/ ) but it's not as good as them yet To whoever develop extensions, please don't focus only on chrome, firefox during the last months has become must better that it was before, if developers only c…

I do want uMatrix ported to Firefox. The developer who ported uBlock[1] has now made it more easy for me to work on a port of uMatrix, as I have now a model on how to proceed + a lot of code which can readily be shared with uMatrix. Once it is ported, in all likelihood I will myself go back to use Firefox as my main browser. [1] https://github.com/Deathamns/uBlock/tree/ports/xpi

Is there anything we can do to help? I'm not sure I personally can help - I've never looked into extensions, but there may be others who can?

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#344

I use AdBlock Plus not because I don't want to see ads...I actually don't mind ads. I use it because I don't want auto-starting audio, ever . I have 30-60 tabs up at any given time. When an ad starts playing audio, it disrupts my entire workflow, possibly disturbs my partner sleeping next to me, etc. In short, auto-start audio in ads is quite simply so far outside of what I consider acceptable behavior, that I'm will…

This is why I usually have my audio muted.

this seems like a much easier (and more foolproof) solution....

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#345

Earlier quoted context omitted.

Actually, you can turn that on now to check it out: http://www.jkwebtalks.com/2014/02/enable-multi-process-tabs-...

No, that uses a single process for all tabs.

? No, the multi-process tab feature is all about one process per tab.

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#346

I use AdBlock Plus not because I don't want to see ads...I actually don't mind ads. I use it because I don't want auto-starting audio, ever . I have 30-60 tabs up at any given time. When an ad starts playing audio, it disrupts my entire workflow, possibly disturbs my partner sleeping next to me, etc. In short, auto-start audio in ads is quite simply so far outside of what I consider acceptable behavior, that I'm will…

Well I use it (and I assume most people use it) because I don't want to see ads. Advertising on the web is largely just obnoxious, ugly, and crude. Also the relentless tracking is a little creepy, so there is another small benefit to using an ad blocker.

I know there are some small groups trying to do good advertising on the web but it is so insignificant it doesn't even register. Large and important websites don't care enough to curate their advertising (or won't curate it to an acceptable level because of the financial hit they'd take), it is a lost cause.

The worst part is that this shit-show is steadily seeping into the mobile app ecosystem, at least on Android (I'm not on iOS enough to make a judgment). I don't know how many times I've seen beautifully designed apps with a damn ridiculous yellow flashing banner (etc) shoved in the middle of it. And 99% of the time there is no option to pay for a version of the app without advertising. I get why people do this (gotta pay the bills, Android users won't pay for apps, etc) but it sometimes seems like people don't take any pride in software anymore. :(

In contrast, I was quite surprised with how pleasant the advertising is on my Kindle. I suppose that can be a benefit of having a closed ecosystem and a device with limited capabilities.

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#348

People aren't using Adblock to conserve resources. They're using it to block ads and most are willing to take a performance hit to do so.

I'm using adblock type stuff to conserve resources. After finding out about the memory use my safari process size went from 6g to about 3.5g (i'm a heavy user of tabs). So yeah it comes in handy for resource conservation.

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#349
post #279

They are memory hogs with or without particular extensions. I leave Chrome with 10 basic tabs open and in 4 hours, it's already "using" 2GB of RAM. The new Firefox Developer Edition with "process per tab" is similar. The best resource-friendly browser on OS X is Safari.

> The best resource-friendly browser on OS X is Safari. You may find others having an opposite experience: http://i.imgur.com/qfwwXhw.png :)

I can beat that a skosh. Here is adblock safari (granted this was with adblock on and safari running a while).

http://imgur.com/J1rP6V0

Safari+adblock+ any amount of tabs+history = I want 64g of ram on my laptop stat.

Re: Adblock Plus is probably the reason Firefox and Chrome are such memory hogs

#350
post #346

I use AdBlock Plus not because I don't want to see ads...I actually don't mind ads. I use it because I don't want auto-starting audio, ever . I have 30-60 tabs up at any given time. When an ad starts playing audio, it disrupts my entire workflow, possibly disturbs my partner sleeping next to me, etc. In short, auto-start audio in ads is quite simply so far outside of what I consider acceptable behavior, that I'm will…

Well I use it (and I assume most people use it) because I don't want to see ads. Advertising on the web is largely just obnoxious, ugly, and crude. Also the relentless tracking is a little creepy, so there is another small benefit to using an ad blocker. I know there are some small groups trying to do good advertising on the web but it is so insignificant it doesn't even register. Large and important websites don't c…

Glad to see this point of view represented. I have never found the indignant reaction to the use of ad blockers very believable.

Advertising is predicated on lies, by definition, and I am only interested in making consumer decisions as far from the influence of marketing departments as is practicable. Advertising is the very worst that capitalism has to offer.

Moreover, I am not interested in being distracted by ads, ever.

If the the web turns out to be a house of cards that crumbles without billions of dollars of vapid ad revenues, then maybe that's a positive evolution.

Post reply on HN