News for hackers. Stuff that matters.
Re:Self-host your fonts for better performance by robin_reala on Friday December 04, 2020 @04:57AM (#25300697)
If you want a really fast web experience, try disabling images and javascript too!

(on rereading this I sounded sarcastic, but I really wasn’t trying to be)

Re:Self-host your fonts for better performance by scaladev on Friday December 04, 2020 @05:03AM (#25300725)
uBlock Origin has a setting to prevent loading elements above certain size. I personally find it to be a nice middle ground.

https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-...

Re:Self-host your fonts for better performance by afaik69 on Friday December 04, 2020 @05:32AM (#25300900)
thx. didn't know about this option. uBlock Origin is just great!
Re:Self-host your fonts for better performance by cratermoon on Friday December 04, 2020 @11:13AM (#25303953)
It would be awesome if uBlock Origin was able to dynamically determine a size limit based on how long assets take to load. Perhaps this is a task for the browser itself, though. Monitor throughput and latency and adjust page load behavior to limit or delay large elements.

I wonder, though, how the client determines the size? Doesn't that require at least a HEAD request, introducing another round trip?

Re:Self-host your fonts for better performance by _a1_ on Friday December 04, 2020 @05:03AM (#25300724)
I'm using uMatrix and by default all javascripts are blacklisted until I explicitly enable it for the site. The downside of this is that lots of websites are broken, payment sites are non-functional, but after a week of building the whitelist, the web is somehow usable again.
Re:Self-host your fonts for better performance by sneak on Friday December 04, 2020 @06:19AM (#25301140)
The worst is when the site is totally blank without it, then you enable it, and there's no interactivity: just images and a few words of text. It was totally unnecessary after all.
Re:Self-host your fonts for better performance by forgotmypw17 on Saturday December 05, 2020 @12:19AM (#25312004)
That's why I stopped enabling it.

Because I've noticed a strong correlation with lack of accessibility and poor quality content I ended up regretting wasting my time reading.

Re:Self-host your fonts for better performance by sekh60 on Friday December 04, 2020 @05:15AM (#25300801)
I do the same. What a sad state the web is such that it is completely worth it to spend a week or two building a whitelist just to make it palatable.
Re:Self-host your fonts for better performance by dmm on Friday December 04, 2020 @08:02AM (#25301777)
uMatrix hasn't been updated in a year and the repo has been archived: https://news.ycombinator.com/item?id=24532973

You'll probably have to let it go someday :(

Re:Self-host your fonts for better performance by smichel17 on Friday December 04, 2020 @08:19AM (#25301924)
I'm well aware. But that day will be when it stops working, and right now it still works fine.

(Actually, it will be some time after that, since the day it stops working I will spend some time investigating how much work it would be to un-break it myself. The web can pry uMatrix from my cold, dead fingers. And I suspect I am not alone in feeling that way.)

Re:Self-host your fonts for better performance by helmholtz on Friday December 04, 2020 @08:53AM (#25302199)
You're not. uMatrix makes the web sane and I'm never lettign it go. What I did (on Firefox) is disable uMatrix in Private windows and I just go there for payment sites. All the rest of the wading through internet-crap is done from within the safe cocoon of uMatrix.
Re:Self-host your fonts for better performance by colejohnson66 on Friday December 04, 2020 @08:59AM (#25302256)
Is there a reason to not use uBlock Origin? I’ll admit, I never used uMatrix, so I don’t know what it does; only adblockers.
Re:Self-host your fonts for better performance by smichel17 on Friday December 04, 2020 @10:29AM (#25303310)
uMatrix is uBlock Origin (uBO) with 2 differences:

1) No cosmetic filtering.

2) A more powerful interface, as _underfl0w_ describes at https://news.ycombinator.com/item?id=25302405

The key thing which that comment does not mention is that the interface enables a whitelist approach — block everything (read: as much as you want) by default and selectively allow certain types of content from certain sites.

This is important because of where your effort is spent.

With uBO, sites always work by default, but it requires manual effort — albeit mostly not by regular users — to stay up to date and blocking the latest trackers and annoyances. So, the amount of effort to keep uBO functioning is proportional to the rate of change in tracking. uBO is an arms race between advertisers and blocklist maintainers.

With uMatrix, all annoyances are gone by default, but often so is desired functionality. It requires manual effort to make the site work again, but once it works, it will continue to work until the site owner changes which types of resources must be loaded in order to function. So, the amount of effort required to keep uMatrix functioning is proportional to the rate of development, specifically major changes.

So, really, the two approaches take a different bet. uBO bets that trackers and ads will change less frequently than functionality. uMatrix bets the opposite. I know which bet I think is more reasonable. Advertisers have way more incentive to try and circumvent uBO than developers do to regularly break their site's functionality.

This all said, it works very well to use both. Having uBO installed means that when you're un-breaking sites in uMatrix, and you allow something that was actually advertising, uBO will usually catch it for you, so you don't have to see ads. This means you don't have to think quite so hard before allowing something in uMatrix, which makes the overall experience much more pleasant.

Re:Self-host your fonts for better performance by mook on Friday December 04, 2020 @11:40AM (#25304366)
Actually, you _can_ configure uBO to block third-party content by default (by turning on advanced user mode); however, it's not as good as uMatrix as there is no split of request type (script versus image, etc.) as well as no UI to manage subdomains. You'll have to do that last part by editing the text configuration manually.
Re:Self-host your fonts for better performance by Karunamon on Friday December 04, 2020 @01:05PM (#25305614)
I think that's a feature now, at least in what's shipping in Chrome. You can click "custom" on any website and select the resources that site is allowed to load, by type.

UI screenshot: https://i.imgur.com/o0UsSdP.png

Re:Self-host your fonts for better performance by smichel17 on Friday December 04, 2020 @01:28PM (#25305872)
That's noscript, not uBlock Origin, and yes, uMatrix is basically that but more convenient.
Re:Self-host your fonts for better performance by gorhill on Friday December 04, 2020 @04:29PM (#25308321)
> no UI to manage subdomains

You can expand any base domain to see subdomains -- click where there is no text. You can also click the "all" cell to expand to see all subdomains.

Re:Self-host your fonts for better performance by ivanche on Friday December 04, 2020 @09:13AM (#25302373)
I use both, they work even better together! uMatrix for enabling JavaScript and cookies only on sites I care about, and uBlock Origin for some cosmetic filtering.
Re:Self-host your fonts for better performance by _underfl0w_ on Friday December 04, 2020 @09:16AM (#25302405)
Not OP but it may have to do with how granular the control is - that's my reason anyway. uMatrix breaks down different types of elements into a literal matrix/grid by party, site, and element type (i.e. 1st or 3rd party, current site or e.g. js.stripe.com, cookies vs images vs scripts vs frames etc.) so you can, say, only allow cookies from the current site but block them from gstatic.com, block the javascript from analytics.cloudflare.com, and choose to allow embedded frames from hcaptcha.com, all by clicking cells in the grid.
Re:Self-host your fonts for better performance by hobs on Friday December 04, 2020 @01:23PM (#25305821)
I do the same for noscript - it doesnt take much - just whitelist the site I am on if it doesnt work the way I want, and if I am worried about a payment on some site I can temporarily allow everything on that tab.

That plus adblock makes the web almost... enjoyable.

Re:Self-host your fonts for better performance by ce4 on Friday December 04, 2020 @05:15AM (#25300808)
I'm in the same boat (mobile + desktop), and agree. One needs to overcome the initial setup of the 80% most used sites. When that is done you get way less tweaking uMatrix. Improves speed, responsiveness, privacy, data usage and battery drain for me on my mobile. For quick one off article reads i load the page in Firefox Focus.
Re:Self-host your fonts for better performance by acdha on Friday December 04, 2020 @08:49AM (#25302172)
That’s the feature I really like in Brave, which stores that setting persistently per site in a convenient side panel. For things like unoptimized news sites it’s the difference between 10-30 and <0.5 second load times on the subway.
Re:Self-host your fonts for better performance by SoSoRoCoCo on Friday December 04, 2020 @10:56AM (#25303718)
I've been trying this every few years since browsers started supporting JavaScript and allowing users to disable it (back in the days before extensions and config options), and every time more and more of the web breaks w/o JSscript. 100% of the websites I need for work use JScript.
Re:Self-host your fonts for better performance by kevin_thibedeau on Friday December 04, 2020 @12:30PM (#25305160)
Most sites are still usable if you cherry pick a subset of the JS they invoke. Blocked trackers like Google analytics or tag manager rarely break things.
Re:Self-host your fonts for better performance by SoSoRoCoCo on Friday December 04, 2020 @01:42PM (#25306022)
Except for sites that I use (internal websites for several vendors), and that is just to manipulate widgets, editors, and forms, and in one case, operate remote machinery. What methods for cherry picking do you like? I've only done all or nothing.
Re:Self-host your fonts for better performance by kevin_thibedeau on Friday December 04, 2020 @04:54PM (#25308645)
I use NoScript to whitelist a minimal set of what needs to be there. I won't ever allow analytics or doubleclick scripts. When I pop into a media site with 20+ third party scripts I just say nope and spend my time somewhere else. For basket case sites needed for work or e-commerce that are too fubared to work with script blocking I have a clean Chrome browser. None of those sites get to have tracking cookies from my main browser instance.
Re:Self-host your fonts for better performance by forgotmypw17 on Friday December 04, 2020 @10:04AM (#25302977)
I do this. Works great, and it,s easy to skip sites who dgiaf.