News for hackers. Stuff that matters.
Re:The Ethics of Web Performance by guggle on Thursday August 01, 2019 @02:52AM (#20581556)
The article seems to put the burden of performance on the developers... but I've been in situations where no matter what I did in favor of performance, the efforts were always negated by the installation of third party marketing tools. Things like retargetting platforms, tracking scripts or even recommandation systems. And let's not talk about the unreasonable client expectations about features per page...
Re:The Ethics of Web Performance by hinkley on Thursday August 01, 2019 @04:00AM (#20581937)
I have unfortunately seen firsthand projects where the marketing crap was over 70% of the page load time. Put another way, the weight of the tracking software was 2x the cost of generating the entire rest of the page.

Do you have any idea how soul crushing it is to work your ass of on site performance, to have people passive-aggressively question the team's abilities when the numbers are even 100ms too high...

And then when you're done some nosey assholes go and add over 2 seconds to your page loads just so they can do something ethically questionable. And the fact they waited til the end to add it on just proves that they knew it was going to be bad news but they did it anyway.

It sucks. It kills trust for the organization, and it kills respect for everyone in the decision chain.

My coworkers and I joke from time to time about running an ethical advertising network with reasonable software. Well, they're joking. I don't think they know I'm not entirely.

Re:The Ethics of Web Performance by oAlbe on Thursday August 01, 2019 @09:01AM (#20583330)
> My coworkers and I joke from time to time about running an ethical advertising network with reasonable software. Well, they're joking. I don't think they know I'm not entirely.

How would that work? And more importantly, how would it stay ethical? I imagine the very basic idea would be to not need to track users, which removes the need for the huge swaths of Javascript that pollute the internet. But would that be profitable?

I'm curious to know what thought you put into this so far.

Re:The Ethics of Web Performance by cavneb on Thursday August 01, 2019 @10:20AM (#20583858)
This is exactly what we built and have been running for over 2 years. CodeFund [1] is an ethical advertising platform that is open source, does not permit or perform any tracking, and only displays ads based on the context of the site. We load our ads async so there’s no slowdown of the page. We are also open with our finances. We exist to fund open source maintainers, bloggers and builders.

[1] https://codefund.io

Re:The Ethics of Web Performance by hinkley on Thursday August 01, 2019 @11:53AM (#20584939)
Yeah that’s the question isn’t it. Let’s say I run a B Corp, or a non profit. Do I really want to associate with some of these networks?

Or on the flip side, I run a website. I want to make some money to pay my expenses, but do I really want to inflict these ad networks on my readership?

It’s not the sort of project that’s going to make you rich. It’s the sort of project that lets you sleep better.

Re:The Ethics of Web Performance by steve_taylor on Thursday August 01, 2019 @05:12AM (#20582268)
I especially hate those tools that allow the marketing department to change the page, e.g. Adobe Target. They work client-side, making their changes after the html has loaded.

They don’t work well with universal/isomorphic web apps, because they have no way of telling when hydration occurs, so they can really mess a page up if they do their filthy business too soon.

But assuming that doesn’t happen, there’s still the matter of what they call “flicker”, which is a silly word that means the original content is visible initially, and then marketing’s changes kick in. To avoid so-called flicker, a page-hiding snippet is inserted into the page, making the entire page transparent until the tool modifies the page. These tools are often blocked by ad blockers, so the page will either remain blank, or will be restored by the page hiding snippet after a few seconds.

You can make a blazingly fast website, and then marketing comes along and takes a big dump on it.

Re:The Ethics of Web Performance by C1sc0cat on Thursday August 01, 2019 @07:34AM (#20582898)
From Biter experience the sort of sites you have to do remedial work on are not blazing fast some common problems I see are :

using unoptimised images

adding massive amounts of javascript

messed up canonicals

internal links requiring redirects to add or remove trailing /

terrible design choices - oh yes lets put 10 products on a single page

Re:The Ethics of Web Performance by KaiserPro on Thursday August 01, 2019 @06:31AM (#20582622)
Sorry, but no.

You can't just blame it on the marketing department.

Yes it is a business decision, but, you have the power to demonstrate that slower pages lead to less clicks and hurt the bottom line.

If the FT's developers can manage to sell this, then so can you, We, as developers can't live in a bubble. We are part of the business and we need to steer the business as we see fit.

Re:The Ethics of Web Performance by nextlevelwizard on Thursday August 01, 2019 @07:02AM (#20582769)
OK, you go to your boss and tell him that because of the marketing team's scripts the app takes twice as long to load. Your boss on other hand says: "Who cares? This is how we make money". You try to explain that lower income people with slower/lower end devices can't access the content. Boss asks how much money are we losing because of this. You have no answer. What do you do?

Almost standard HN answer when it comes to moral programming questions is to stand by your principles and resign immediately, but this usually comes from people who haven't had to deal with paying bills or become homeless. Even then if you don't do it someone else who needs the money will.

What would you KaiserPro do in this situation?

Re:The Ethics of Web Performance by KaiserPro on Thursday August 01, 2019 @11:05AM (#20584389)
> Boss asks how much money are we losing because of this. You have no answer. What do you do?

This is my point. If you can't answer the first and most basic question with hard data, you're fucked. There is literally no point going to one's boss and saying "this is morally wrong" unless you can make a business case. (or your boss has the same world view as you.)

If you can't argue that your change is going to move a KPI for the better, you've lost your argument.

I know lots of "tech" people like to waft about thinking that they are above such mundane things as buisness KPIs (OKRs if your management team has swallowed google's rubbish) Thats why they think they are such maligned geniuses.

Tech is an enabler for a business to do business. Its just another tool, like a warehouse, van or envelope. If you want to make sure you're not going to get slung out during the next re-org, you have to make sure that you are performing to what the _buisness_ wants from you. Thats a two way street.

for example, marketing come up to us and say: "we need a microsite for the conference thats coming up"

Sure I could make a K8s cluster to host a website. But I could do it quicker and cheaper by using a PaaS(or Saas), trumpet the speed and clarity of my execution, underline in triplicate the capex cost I've saved (ignoring the opex, because they won't find out about that till next year, plus it's not my bill, I'm measured on staff costs.)

Is it cutting edge? is it fuck. Does it get me browny points? you bet ya.

I can then spend those browny points on trying to change things about my working environment that I don't like. As I've made marketing happy, I can work on them to find a better tracking company, or better yet, get them to pay us to develop their BI pipeline.

Sure its not a "pure tech" experience. But I can affect way more change than reskinning the website in yet another framework, following the latest animation style guide from some sadistic nonce claiming to be a UX guru.

So No. I wouldn't quit over this. Because I'm not a Wilde-esq dandy.

Re:The Ethics of Web Performance by fulafel on Thursday August 01, 2019 @01:04PM (#20585881)
> There is literally no point going to one's boss and saying "this is morally wrong" unless you can make a business case. (or your boss has the same world view as you.)

If your boss is worth their salt, reasonable moral objections will be taken seriously. It's management 101. If not, you are probably not going to be happy there anyway.

Re:The Ethics of Web Performance by brlewis on Thursday August 01, 2019 @08:08AM (#20583049)
> OK, you go to your boss and tell him that because of the marketing team's scripts the app takes twice as long to load. Your boss on other hand says: "Who cares? This is how we make money".

What company do you work for that makes more money by causing your app to load twice as slow? I think it's reasonable to expect a developer to measure and present the correlation between performance and revenue.

Re:The Ethics of Web Performance by guggle on Thursday August 01, 2019 @08:48AM (#20583266)
> What company do you work for that makes more money by causing your app to load twice as slow?

I used to work in e-commerce and in spite of my repeated warnings about performance, no boss cared. Then some SEO consultant said "google wants fast websites". Guess who got blamed ?

Re:The Ethics of Web Performance by nextlevelwizard on Friday August 09, 2019 @01:42AM (#20651622)
>What company do you work for that makes more money by causing your app to load twice as slow?

I'm not sure if you are trolling. Can you seriously not parse out that sentence? It is the ad revenue that makes the money. The app loading slow is a side effect. No one (that I know of) is making money by deliberately making slow applications, just think for a second that makes no sense. However a lot of applications make money from ads.

Re:The Ethics of Web Performance by mbesto on Thursday August 01, 2019 @10:01AM (#20583732)
> I think it's reasonable to expect a developer to measure and present the correlation between performance and revenue.

I'll bite. Do you really do this? If so, I'm seriously curious about how you could conclude a straight line causation (not just correlation) between an increase in revenue by an increase in performance? Potentially for a large scale site like Twitter, Facebook where performance means less eyeballs, but even then it's just a correlation.

Re:The Ethics of Web Performance by KaiserPro on Thursday August 01, 2019 @11:07AM (#20584410)
Graphs.

I was here https://medium.com/ft-product-technology/a-faster-ft-com-10e... when they did this.

Its easy to find graphs that support your conclusion.

Re:The Ethics of Web Performance by layoutIfNeeded on Monday August 05, 2019 @06:18PM (#20619724)
You don’t need sound reasoning that could withstand scientific scrutiny. Management won’t be able to distinguish valid from bogus data. Just p-hack until it fits your conclusion - they’ll eat it up in no time.
Re:The Ethics of Web Performance by brlewis on Thursday August 01, 2019 @11:12AM (#20584475)
Where I work we already have people doing this, so I don't have to. If your project doesn't tie directly to revenue it surely has KPIs which would be affected by performance.
Re:The Ethics of Web Performance by guggle on Thursday August 01, 2019 @06:47AM (#20582696)
Been there, done that. Alas, with poor results. Now I'm happy in non-business activities.
Re:The Ethics of Web Performance by okaleniuk on Thursday August 01, 2019 @03:09AM (#20581640)
This is so true. You can maneuver within client expectations, and you certainly can optimize every particular features but marketing tools are often non-negotiable.

From the user's stand point - they are pure overhead, too. For my own project, I decided to ditch them completely. Including the analytics. Well, it would have been nice seeing all the nice plots but at the end of the day they just show vanity metrics. The real impact is immeasurable.

Re:The Ethics of Web Performance by Cthulhu_ on Thursday August 01, 2019 @05:43AM (#20582409)
There should be analytics solutions that don't put the burden on the client, server-side products. Or lightweight ones that mainly track button clicks and navigation, instead of e.g. recording all mouse and keyboard interactions.

I want to think basic analytics has a very low impact on performance. Ads, on the other hand... Which all inject their own analytics as well.

Re:The Ethics of Web Performance by Moru on Thursday August 01, 2019 @06:38AM (#20582650)
There are analytic tools that run on the log files. If that is to high load on the server I'm sure they can be run offline by downloading the logs to your local machine.
Re:The Ethics of Web Performance by pmlnr on Thursday August 01, 2019 @04:13AM (#20582001)
I'm an outsider to these kind of processes: how is a 3rd party marketing tool added to a site at a BigCo?

I'm still fairly certain it involves developers, who, in theory, should have pre- and post- number on performance, visits, etc. Or am I delusional?

Re:The Ethics of Web Performance by luckylion on Thursday August 01, 2019 @04:51AM (#20582187)
I believe the point is that developers don't have a say in whether some 3rd party lib gets added. Some PM gets a lunch with a vendor, they are being sold on the miraculous technology that will totally disrupt everything and that's that.
Re:The Ethics of Web Performance by guggle on Thursday August 01, 2019 @06:07AM (#20582500)
> I believe the point is that developers don't have a say in whether some 3rd party lib gets added

And even more so with tools like tagmanager... not only you have no say, you also don't know. And one day the site breaks or is too slow to be useful and someone puts the blame on you.

Re:The Ethics of Web Performance by AnIdiotOnTheNet on Thursday August 01, 2019 @08:00AM (#20583016)
They do have a say, they just value keeping their jobs more than doing the right thing. That isn't ridiculous, but they need to stop blaming everyone else (who are essentially doing the same thing) for the problem as though they aren't contributing.
Re:The Ethics of Web Performance by luckylion on Thursday August 01, 2019 @08:47AM (#20583261)
With that understanding of "having a say", you're having a say in being kidnapped, too. "Hey, you could've fought the guy with the gun... you just valued your life more than doing the right thing".

It's not a useful definition imho.

It's not that there aren't any developers contributing to the problem, those building the fat 3rd-party scripts definitely are (though they're likely under different constraints), but the argument for "you're contributing if you don't use your credentials to secretly edit out the javascript that loads that tool and get fired" is pretty far out there, I think.

Re:The Ethics of Web Performance by AnIdiotOnTheNet on Thursday August 01, 2019 @09:12AM (#20583395)
Honestly you can't see the difference between being held at gunpoint and voluntary employment? It's not like web developers are working low-skill jobs for minimum wage and scraping by here.
Re:The Ethics of Web Performance by luckylion on Thursday August 01, 2019 @10:05AM (#20583748)
I see the difference, I just don't believe it's a reasonable argument. You don't make a difference if you quit over performance issues, your personal position has no weight in the decision-making process, you have no say in the matter.

Yes, you can make the argument that "well nobody actually has the power to decide, they are all being forced by something", but it gets very weird quite quickly when you're looking at the people making the decisions. Whenever it gets into "but is there actually such a thing as free will" territory, I feel like the usefulness of the definitions used isn't there.

Re:The Ethics of Web Performance by AnIdiotOnTheNet on Thursday August 01, 2019 @10:48AM (#20584159)
> your personal position has no weight in the decision-making process, you have no say in the matter.

Not on an individual level, no, but collectively it could. I'm not advocating that webdevs organize to boycott companies bloating things because it isn't really that big a deal, but if we imagine the ethical situation were much more important then that's how they could go about changing the situation.

Of course, it's much easier to pretend that they have no option at all than to admit that, compared to being slightly less well off, it really isn't that big a deal to them. It lets them virtue-signal that they care without accepting any blame for the situation, while also conveniently allowing them to point the finger at their mortal enemies in marketing. Nevermind that marketing needs to put food on the table too.

Re:The Ethics of Web Performance by luckylion on Thursday August 01, 2019 @11:14AM (#20584509)
That's generalized to the point of uselessness, isn't it? "You're contributing to imperialist wars" - "No, I'm not" - "well, not personally, but if everybody on earth stood together and said no, nobody would be going to war".

You're very right that marketing needs to put food on the table too, that's what I hinted at regarding being forced. There's a very clear difference though, in deciding what to do (marketing) and not deciding what to do (devs, at least those where they aren't involved in the decision, which is a lot).

Whoever is in charge could very much make a different choice in this particular manner, a developer getting a task cannot. What a marketing person can't do, similarly, is say that they won't do their job. How they do their job is mostly up to them, just as the developer tends to be free in choosing how they get that 3rd-party-lib into the site, as long as they do it.

Re:The Ethics of Web Performance by tiborsaas on Thursday August 01, 2019 @12:07PM (#20585125)
> I'm still fairly certain it involves developers

It doesn't. Once you have Google Tag Manager added, the marketing team can add scrips as they like on an admin interface. Point, click, murder.

Re:The Ethics of Web Performance by vast on Thursday August 01, 2019 @03:36AM (#20581808)
He actually says that devs try to do their best but the business models make it hard. I can very well resonate with that. With decent effort we could make out site respond in a tenth of the current time. But no one ever asks for it nor will give you the opportunity. Even performance centric companies like Google are now doing an insanely bad job. Business applications perform bad even on modern desktops. They will probably try to keep the user facing parts of the ad machine fast, but everything else is not what I expect from a company with such mindset. They of course never did anything to improve the state of ad tech.
Re:The Ethics of Web Performance by londons_explore on Thursday August 01, 2019 @04:00AM (#20581938)
Google ad bidding requires 200 milliseconds to run the ad auction. I could send a packet all the way to Australia and back in that time!

If you're trying to make a page load instantly (100 milliseconds - the edge of human perception), it isn't possible with Google ads, even the text only ones.

Re:The Ethics of Web Performance by atoav on Thursday August 01, 2019 @04:11AM (#20581992)
Although 100ms would be a decent loading speed compared to todays standards, 100ms is not the edge of human perception. Tm100ms equals 2.5 frames in 25 fps and even a 1 frame blank image (40ms) is noticeable at that speed.

In my experience the edge of visual perception is somewhere below 10ms

Re:The Ethics of Web Performance by londons_explore on Thursday August 01, 2019 @06:06AM (#20582494)
I am considering the 'click on thing, see result' perception loop, which is far slower than the 'see one thing happen and then see another thing happen, and not be sure if they happened at the same time or sequentially'.
Re:The Ethics of Web Performance by atq2119 on Thursday August 01, 2019 @07:24AM (#20582853)
Even the difference between ~16ms and ~33ms is noticeable to most people for the "click to see result" perception loop -- that's the difference between 60fps and 30fps.

100ms is a glacially slow reaction time in comparison, and it's a bit sad that most of the tech industry is setting their performance goals so low.

(In fairness, I suspect most people wouldn't be able to verbally express why the 16ms feels better to them than the 33ms, but would subconsciously notice the difference.)

Re:The Ethics of Web Performance by brlewis on Thursday August 01, 2019 @08:24AM (#20583121)
This is acknowledged at the end of the article, in a section called "Performance is an ethical consideration, now what?"