Live data from Hacker News

We rendered a million web pages to find out what makes the web slow

itnext.io

101–110 of 124 posts

Re: We rendered a million web pages to find out what makes the web slow

#101
post #78
post #31

Earlier quoted context omitted.

If you can afford it, I'd suggest switching to AdNauseam ( https://adnauseam.io ). They're using the same uBlock Origin engine, but ads are downloaded and clicked on in the background. This way you still generate revenue for site owners. But since this extension is banned from the Chrome Web Store, you'll have to install it manually there. On Firefox it's available from their add-on store.

This is based on a misunderstanding of how ads work and does harm. If this silently clicks ads in the background the click rate goes up but the goal action (buying, signing up) remains at 0 which smartprices the ads and tanks the value of the ads for the real clickthroughs. If you must block ads just use uBlock Origin so you are treated like your visit doesn't exist. A deeper question is it moral to consume content a…

Is it moral to conflate "advertisement" with code running on my device without my express permission? Tracking my behavior across the web? Selling their profiles to entities with which I have no direct connection? Dog wagging by changing what I see across sites to get better conversion rates?

Doing what I can to prevent all that doesn't present me with any moral quandary. Advertisers certainly don't follow any sort of moral imperative.

Advertising is not inherently bad but modern web advertising is ridiculous.

Re: We rendered a million web pages to find out what makes the web slow

#102
post #63

Pages with rocket-lazy-load are generally faster. AFAIK Rocket is a Rust framework and my guess is that the average Rust dev cares more about perf. Which would imply that perf could be more about mindset than technology. But that's just my humble interpretation...

It is the name of a Rust web framework, but this is referring to a Wordpress plugin. (Also, the Rust Rocket is not primarily focused on perf, but developer ergonomics.)

Ah, good to know, thanks!

Re: We rendered a million web pages to find out what makes the web slow

#103
post #98
post #60

Earlier quoted context omitted.

jQuery is a large library, but it isn't exactly the source of web performance issues in my experience. It's the way it's used: many sites use it to render content, especially above-the-fold content (like image galleries, such as on ecommerce sites). Since much jQuery-based code waits for the DOM to finish loading first (e.g. with `$(function() { ... })`) [0], that means all the HTML has to finish being parsed and loa…

> That means the browser stops parsing the HTML mid-way through the page load, resolves the CDN's domain to IP, does a TLS handshake and establishes a connection to the CDN, waits to download the script, parses, runs it, and then proceeds on to the rest of the HTML. This is not true since about 2008. All major browsers parse the HTML without waiting for synchronous to load. https://developer.mozilla.org/en-US/docs/Gl…

You're right, I stand corrected on the parsing bit I mentioned, which to be honest is a nuance I had not heard of. But it doesn't change my point much. Using script tags without `defer` will still delay the page load. They might not block parsing, but they will still block rendering. Both matter when it comes to seeing anything on your screen at all.

Re: We rendered a million web pages to find out what makes the web slow

#104
post #91
post #82

Earlier quoted context omitted.

Morally, blocking ads is equivalent of having your butler cut the ads out of the newspaper before handing it to you.

After stealing the newspaper?

Browsing the web is equivalent of your butler shouting to another butler to please GET /some/page, and the other butler then kindly replying with a document.

Theft requires the action to not be voluntary, but a web server replying with a page is free to reject my request. It is entirely moral.

Re: We rendered a million web pages to find out what makes the web slow

#105
post #34
post #30

Earlier quoted context omitted.

uBlock is what's keeping me from switching to Safari (which is so much nicer to use on a Mac) It seems like most people who use Safari use full system-level ad blockers like Wipr. But I was also Googling around and found some complaints about Wipr, like it taking forever to be updated to block YouTube ads when they switch how they're displayed, or not being as good at getting around ad-block detection on certain site…

I've recently switched to macOS and Safari with Wipr. I don't see much difference to my Firefox setup with AdNauseam (uBlock Origin) before. More on the contrary - my selected lists were very aggressive and I had various sites where I had to disable uBlock to see them properly. With Safari and Wipr, everything seems to just work.

Good to know, thanks. Maybe I'll have to give it a shot. I suppose $2 isn't that big of a risk given what some apps on the Mac App Store cost

Re: We rendered a million web pages to find out what makes the web slow

#106
post #30
post #4

Use an adblocker. I save about 25 gigs and hours of my time every month. * https://www.ublockorigin.com * I block much more than ads.

uBlock is what's keeping me from switching to Safari (which is so much nicer to use on a Mac) It seems like most people who use Safari use full system-level ad blockers like Wipr. But I was also Googling around and found some complaints about Wipr, like it taking forever to be updated to block YouTube ads when they switch how they're displayed, or not being as good at getting around ad-block detection on certain site…

I use AdGuard and it works pretty well. Well enough that Safari is still the superior experience on my Mac for general browsing, especially when it comes to performance and battery life.

I actually use Chrome, Firefox, and Safari on a daily basis, so I have some pretty solid annecdata that Safari is the best experience.

Re: We rendered a million web pages to find out what makes the web slow

#107
Tangential question: are there other giveaways than download time for a cached document which could be used by malicious scripts?

I ask because I don't understand why a zero download time for a cached document couldn't be simply masked by some (random) wait by the browser instead of downloading the file again.

From the chrome update page linked in the article, the explanation is:

> However, the time a website takes to respond to HTTP requests can reveal that the browser has accessed the same resource in the past, which opens the browser to security and privacy attacks, [...]

which seems to indicate that only time matters in the attacks. Yet, the third bullet point suggests:

> Cross-site tracking: The cache can be used to store cookie-like identifiers as a cross-site tracking mechanism.

as a possible attack based on the cache, which doesn't seem to involve document download time.

Re: We rendered a million web pages to find out what makes the web slow

#108

Tangential question: are there other giveaways than download time for a cached document which could be used by malicious scripts? I ask because I don't understand why a zero download time for a cached document couldn't be simply masked by some (random) wait by the browser instead of downloading the file again. From the chrome update page linked in the article, the explanation is: > However, the time a website takes t…

Browsers are mitigating what you described with cache partitioning.

https://developers.google.com/web/updates/2020/10/http-cache...

Re: We rendered a million web pages to find out what makes the web slow

#109
post #30
post #4

Use an adblocker. I save about 25 gigs and hours of my time every month. * https://www.ublockorigin.com * I block much more than ads.

uBlock is what's keeping me from switching to Safari (which is so much nicer to use on a Mac) It seems like most people who use Safari use full system-level ad blockers like Wipr. But I was also Googling around and found some complaints about Wipr, like it taking forever to be updated to block YouTube ads when they switch how they're displayed, or not being as good at getting around ad-block detection on certain site…

You can install uBlock in Safari from the AppStore. Works great for me.
Post reply on HN