Doing the right thing for the wrong reasons

I remember trying to convince people to use semantic markup because it’s good for accessibility. That tactic didn’t always work. When it didn’t, I would add “By the way, Google’s searchbot is indistinguishable from a screen-reader user so semantic markup is good for SEO.”

That usually worked. It always felt unsatisfying though. I don’t know why. It doesn’t matter if people do the right thing for the wrong reasons. The end result is what matters. But still. It never felt great.

It happened with responsive design and progressive enhancement too. If I couldn’t convince people based on user experience benefits, I’d pull up some official pronouncement from Google recommending those techniques.

Even AMP, a dangerously ill-conceived project, has one very handy ace in the hole. You can’t add third-party JavaScript cruft to AMP pages. That’s useful:

Beleaguered developers working for publishers of big bloated web pages have a hard time arguing with their boss when they’re told to add another crappy JavaScript tracking script or bloated library to their pages. But when they’re making AMP pages, they can easily refuse, pointing out that the AMP rules don’t allow it. Google plays the bad cop for us, and it’s a very valuable role.

AMP is currently dying, which is good news. Google have announced that core web vitals will be used to boost ranking instead of requiring you to publish in their proprietary AMP format. The really good news is that the political advantage that came with AMP has also been ported over to core web vitals.

Take user-hostile obtrusive overlays. Perhaps, as a contientious developer, you’ve been arguing for years that they should be removed from the site you work on because they’re so bad for the user experience. Perhaps you have been met with the same indifference that I used to get regarding semantic markup.

Well, now you can point out how those annoying overlays are affecting, for example, the cumulative layout shift for the site. And that number is directly related to SEO. It’s one thing for a department to over-ride UX concerns, but I bet they’d think twice about jeopardising the site’s ranking with Google.

I know it doesn’t feel great. It’s like dealing with a bully by getting an even bigger bully to threaten them. Still. Needs must.

Have you published a response to this? :

Responses

Kim Johannesen

I’ve written this blog entry 1000 times in my head, but now @adactio has gone and done it for me instead. I remember I wanted to call it “Do The Right Thing” and photoshop the poster from the Spike Lee movie. Anyways, go read: adactio.com/journal/18199

Michael Scharnagl

Doing the right thing for the wrong reasons by @adactio Exactly my experience. Had to use the SEO-Joker many times to convince clients to do the right thing. It feels wrong, but if if helps to make a site accessible and performant I can live with it. adactio.com/journal/18199

Max Böck

“Take user-hostile obtrusive overlays. (with Core Web Vitals) […] you can now point out how those are affecting, for example, the cumulative layout shift. And that number is directly related to SEO.” adactio.com/journal/18199

# Posted by Max Böck on Saturday, June 12th, 2021 at 11:35am

1 Like

# Liked by Marty McGuire on Thursday, June 10th, 2021 at 1:47pm

Related posts

Writing on web.dev

A new free course on responsive web design.

Downloading from Google Fonts

For some reason, Google Fonts only provides .ttf files if you’re self-hosting. I don’t know why.

Code print

Print stylesheets and QR codes: one great flavour and one yucky flavour that taste quite good together.

Needs must

The tension between developer convenience and user needs.

Heisenberg

JavaScript and the observer effect.

Related links

Google AMP: how Google tried to fix the web by taking it over - The Verge

AMP succeeded spectacularly. Then it failed. And to anyone looking for a reason not to trust the biggest company on the internet, AMP’s story contains all the evidence you’ll ever need.

This is a really good oral history of how AMP soured Google’s reputation.

Full disclosure: I’m briefly cited:

“When it suited them, it was open-source,” says Jeremy Keith, a web developer and a former member of AMP’s advisory council. “But whenever there were any questions about direction and control… it was Google’s.”

As an aside, this article contains a perfect description of the company cultures of Facebook, Apple, and Google:

“You meet with a Facebook person and you see in their eyes they’re psychotic,” says one media executive who’s dealt with all the major platforms. “The Apple person kind of listens but then does what it wants to do. The Google person honestly thinks what they’re doing is the best thing.”

Spot. On.

Tagged with

Google AMP is dead! AMP pages no longer get preferential treatment in Google search

I don’t know if AMP is quite dead yet, but it feels like it would be a mercy to press a pillow down on its face.

Google’s stated intention was to rank sites that load faster but they ended up ranking sites that use AMP instead. And the largest advertising company in the world dictating how websites can be built is not a way to a healthier and more open web.

Tagged with

Performance-testing the Google I/O site - JakeArchibald.com

Modern web development:

Imagine you went to a restaurant, took a seat, and 20 minutes later you still haven’t been given a menu. You ask where it is, and you’re told “oh, we’re currently cooking you everything you might possibly ask for. Then we’ll give you the menu, you’ll pick something, and we’ll be able to give you it instantly, because it’ll all be ready”.

Single page apps, ladies and gentlemen.

Tagged with

Au revoir, mon AMPmour? — Ethan Marcotte

I’ll say again: deprioritizing AMP in favor of Core Web Vitals is a very good thing. But it’s worth noting that Google’s taken its proprietary document format, and swapped it out for a proprietary set of performance statistics that has even less external oversight.

Tagged with

The End of AMP – lafoo – ramblings about the online world

Google provided a distinct advantage to sites using AMP – priority placement on the world’s largest traffic source – Google search. I’ve had the pleasure of working with more than twenty thousand publishers in the five years since AMP’s launch, and I don’t believe I’ve ever heard a single reason that a publisher uses AMP other than to obtain this priority placement. Let me package that up for you – Google, the most dominant search engine globally – used that dominant market position to encourage publishers to adopt technology so that Google could store and serve publisher’s content on Google’s domain. How is that legal? Well, I’m not a lawyer, but it possibly isn’t.

The death of AMP can’t come soon enough.

If you’re currently using AMP, you’ll be able to get rid of that monstrosity in May, and if you aren’t, you’ll now be competing for search positions previously unavailable to you. For publishers, it is a win-win.

Tagged with

Previously on this day

5 years ago I wrote The schedule for Patterns Day

What you can expect on Friday, June 28th, 2019 in the Duke of York’s cinema in Brighton.

8 years ago I wrote A wager on the web

What’s the worst that could happen?

9 years ago I wrote 100 words 080

Day eighty.

13 years ago I wrote Newcastling

Conferences in the UK.

13 years ago I wrote L33t ski11z

One of these things may just change your life.

18 years ago I wrote A tipping point for microformats

Something tiny this way comes.

20 years ago I wrote On Her Majesty's Secret Sea Power Service

It seems that a number of the bigger Brighton-based bands haven taken to giving quirky, secretive concerts lately.

20 years ago I wrote Best. Simpsons reference. Ever.

From Idle Words:

21 years ago I wrote Cheer up

Feeling down? Depressed? You need to listen to some country songs to cheer you up:

22 years ago I wrote Accessibility goes mainstream

The New York Times has picked up on the whole accessibilty debate. The site requires free registration before you can read the article.