Live data from Hacker News

Google’s AMP is a gilded cage

shkspr.mobi

121–130 of 130 posts

Re: Google’s AMP is a gilded cage

#121
post #41

Earlier quoted context omitted.

It's worth pointing out, though, that the source of a lot of this performance drain is ads. And Google are the main provider of ads across the internet. To me, AMP feels like a method for Google to sidestep the real issue at hand.

Are google ads that slow? When I look at the dozens of requests issued by slow sites, I don't see google domains. I see every other fucking tracker, suggester, sharer, and optimizer, but not google.

Ah, but just because you see Google ads, it doesn't mean that was all the website tried to serve.

They probably ran a waterfall, asking AppNexus, Pubmatic, TradeDesk and 40 other ad providers for an ad at $5, $2, $1, etc. before giving up and serving a Google ad...

Re: Google’s AMP is a gilded cage

#122

Earlier quoted context omitted.

Does it get faster when you don't block it?

Apparently yes. (Not on the same machine, but I just checked on my work notebook where I have uBlock rather than uMatrix, and cdn.ampproject.org is let through.)

Ah interesting. Thanks for bringing this up. I use uBlock but didn't have any issues rendering it. Since I don't really care about the SEO/Google hosting it it might make sense to just link to my own locally hosted version to avoid the adblocking block.

Re: Google’s AMP is a gilded cage

#123
post #115

Earlier this year I spent some time moving my blog to AMP and so far I'm pretty happy with the move. It's hosted on GitHub pages and I made the decision to go full AMP (including Desktop so I never went the /amp/ subfolder route) and allowed me to convert every existing page to AMP without having to have a new set of URLs. It's noticeably faster but there are a few hiccups I had to deal with - JS needs to be in isola…

Wow, the pages on your site load so quickly they're finished rendering before I even start reading the article. Thanks for sharing this. Very cool.

Yea - that was my first experience using it for some of the news sites and I ended up spending a weekend redoing my entire site to do pure AMP for desktop as well. The general idea of AMP is to avoid forcing a "rerender" of the DOM so it tries to do as much processing beforehand in order to only render the page once. This is why you have to specify the CSS inline and associate dimensions to each image.

Glad you liked it!

Re: Google’s AMP is a gilded cage

#124
post #120

Earlier quoted context omitted.

Well, you can access the AMP version of the page from anywhere, not just Google search results. I could see apps that use an in-app browser serving the AMP version of a page, instead of the full version, for instance. I guess we'll see?

I'm aware that it's technically possible but was realizing that, as a fairly active mobile web user, I had never noticed AMP in use except for Google search results.

i could see other apps that use a native browser preferring the AMP version. something like yelp, that lets you click through to the source page, for instance.

Re: Google’s AMP is a gilded cage

#125

AMP is yet another good idea that Google didn't test properly or think through. As far as I can see, you can't click through to the actual page from an AMP page, which sucks if you want to share the link or something.

> AMP is yet another good idea Can you explain why AMP is a good idea? I still don't really understand it, I'm afraid.

It's just fast. It loads the page damn near instantly. Similarly to facebook Instant Articles.

Re: Google’s AMP is a gilded cage

#126

Earlier quoted context omitted.

> That mobile doesn't have a way to block ads is probably a failure of Google, Apple and other players to allow extensions. To be honest, I see this as short-term painful, long-term desirable. Ad blockers make the incentives of the web worse - they mean that publishers get punished for bad behaviour of other sites. Whereas without, users make more direct value judgements...if your site is covered in ads and a terribl…

> I don't think that Google has the power you think it does to strong-arm other ad networks Not strong arm per se, but just having _any_ built in enforcement of technical standards built into DFP would solve the lionshare of the problem. At the moment, publishers have to play whack-a-mole with poorly-built creatives. IAB's LEAN standard would be a fine place to start. (To your point about not pushing people around, I…

The catch here is that if DFP were to enforce technical standards to the extent of including performance, publishers would leave en masse. What they want from DFP (as I understand it) is hosting that just works; they don't want anyone in the way causing some ad campaigns to not get trafficked at the right time, or killed after serving for a while, or anything else. And worse, I think that you'd find that a very large number of ads wouldn't comply with any such standard - display ads aren't good, by and large. So even with a perfect offering publishers would look at the numbers and say "you know what, nevermind...turn the crappy ads back on." A pretty good approximation for publishers I've found was to say "if you give them a knob between anything and revenue, they'll turn it towards revenue." That by and large includes sacrificing user-first principles.

So one difference to your example is that viewability is desired - it's a direct metric that helps to approximate value, which advertisers like. But performance is not. Users cannot generally tell _which_ ad made their browser lag, or that it wasn't the page's fault. The best you could possibly do is to measure long-term-value, but because any given publisher only gets a tiny fraction of a user's time, and any single ad that much less, my recollection is that the LTV isn't really moved at all regardless of experience. It's going to take an industry-wide shift to move the needle here.

HTTPS is a closer comparison, except that it takes big parties again to force the issue - it's user positive but revenue negative and lots of work. So it comes back to the issue of who can get this change pushed through, without some party (pubs, advertiser, or users) just walking away. Look at examples of where/why HTTPS has been adopted if you want to see more.

AMP may get to that point, we'll see, but I like it as a possibility. And it's doing more to simply not show ads if they're taking too many resources (with browser assistance iirc? Delay loading? Don't recall what I've read), which is good in other ways.

Which reminds me, that's another plausible solution that I'm liking...if browsers can be more involved in aborting rendering bad iframe'd content, or preventing them from janking the page, etc, then the burden is squarely on the advertisers to fix or suffer reduced impact, irrespective of publisher/ad network. That's great, it puts the incentives cleanly where they should be. So I'm also hopeful that browsers can push through positive results here. Doesn't help with content badness (only latency and other such browser-measurable "bad ad" issues), but is a great starting place. (And to be fair, I don't think AMP solves for content badness either).

Re: Google’s AMP is a gilded cage

#127
post #70

Earlier quoted context omitted.

AMP allows google to prefetch and pre-render AMP content before a user clicks given it can ensure the content does not do malicious things because the AMP format is tightly controlled. The end result is that when clicking on an AMP result, it loads instantly.

Prefetching is possible using standard web technologies and that improves the security footing since it follows the normal browser origin policies. The actual reason for AMP is that it gives Google control: the good side of that is that companies have an outside check on performance — think about how many companies exist where internal politics means that “this will hurt SEO” will be listened to but “this page is too…

Pre rendering is not possible on iOS Safari and pre fetching is dangerous given you don't know if the origin can support it or not.

AMP is faster than the alternative.

Re: Google’s AMP is a gilded cage

#128
post #70

Earlier quoted context omitted.

Prefetching is possible using standard web technologies and that improves the security footing since it follows the normal browser origin policies. The actual reason for AMP is that it gives Google control: the good side of that is that companies have an outside check on performance — think about how many companies exist where internal politics means that “this will hurt SEO” will be listened to but “this page is too…

Pre rendering is not possible on iOS Safari and pre fetching is dangerous given you don't know if the origin can support it or not. AMP is faster than the alternative.

> pre fetching is dangerous given you don't know if the origin can support it or not.

That's not true unless your site already has a huge exposed vulnerability. It's also irrelevant to the discussion of how a search engine could provide an opt-in feature which you could choose to enable.

> AMP is faster than the alternative.

Do you have any data to support that assertion? Remember, you're replying to a thread about possible standards-based alternatives but Google has never implemented that, so we all we can say is that AMP is faster than not doing anything at all. We don't have any data saying that the solution to web performance problems is a bunch of proprietary markup and JavaScript. I've certainly found AMP to be slower as often as it is faster, because the proprietary markup means you have a bunch of resource requests which will be delayed until ~125KB of JavaScript loads and executes whereas a standard tag would have started the same transfer without that delay (see e.g. https://www.webpagetest.org/video/compare.php?tests=161129_X... where the non-AMP version starts rendering over a second faster on an iPhone 6 over LTE).

As an example of how this could be different, imagine if Google simply started aggressively using measured page-load times and transfer size with the same weight they currently give to AMP, giving all publishers the same incentive to reduce things like the massive amount of ad-related JavaScript they traditionally serve, and started serving rel=dns-prefetch/preconnect/preload hints for the top-n search results (or on mouse hover states, etc.). That might not be quite as fast as the best-case for AMP but I suspect it would rapidly get into the territory where the user benefit is diminishing compared to the benefits of not dictating a restricted tech stack.

That last part is pretty important because AMP is not without cost: it breaks the sharing UX on mobile devices, desktop users get a mobile-optimized page which isn't as good for their devices, and most importantly it limits you to the subset of functionality which they choose to implement. It seems risky to push everyone towards a single company's view of how the web should work rather than allowing independent experimentation and optimization for different types of content and users.

Re: Google’s AMP is a gilded cage

#129

Earlier quoted context omitted.

> I don't think that Google has the power you think it does to strong-arm other ad networks Not strong arm per se, but just having _any_ built in enforcement of technical standards built into DFP would solve the lionshare of the problem. At the moment, publishers have to play whack-a-mole with poorly-built creatives. IAB's LEAN standard would be a fine place to start. (To your point about not pushing people around, I…

The catch here is that if DFP were to enforce technical standards to the extent of including performance, publishers would leave en masse. What they want from DFP (as I understand it) is hosting that just works; they don't want anyone in the way causing some ad campaigns to not get trafficked at the right time, or killed after serving for a while, or anything else. And worse, I think that you'd find that a very large…

That's interesting. I've been working on the publisher side for a long time, and we definitely want technical enforcement. (The devil is in the details. It'd be dumb to automatically block an ad that's 5kb too heavy, but if something is never going to serve because it has mixed content warnings, I'd rather it get switched off and flagged to staff automatically. Otherwise it just wastes inventory until a person notices it.) I can talk in more detail over email if you're interested.

The browser approach is a good idea. It wouldn't even have to break anything, just limit their allotted resources.

Re: Google’s AMP is a gilded cage

#130

Earlier quoted context omitted.

The catch here is that if DFP were to enforce technical standards to the extent of including performance, publishers would leave en masse. What they want from DFP (as I understand it) is hosting that just works; they don't want anyone in the way causing some ad campaigns to not get trafficked at the right time, or killed after serving for a while, or anything else. And worse, I think that you'd find that a very large…

That's interesting. I've been working on the publisher side for a long time, and we definitely want technical enforcement. (The devil is in the details. It'd be dumb to automatically block an ad that's 5kb too heavy, but if something is never going to serve because it has mixed content warnings, I'd rather it get switched off and flagged to staff automatically. Otherwise it just wastes inventory until a person notice…

I hate to +1 these things but I have had similar experiences with 0 control over the ads that were showing up on a platform. It was a single page app and performance was a huge deal. Often ads didn't even load because of the quality.

Maybe it shouldn't be DFP forcing things as I said, but I think if the controls even existed for publishers it might mean that they tune things to be pleasant for their users such that they get more impressions.

Post reply on HN