Live data from Hacker News

Standardizing lessons learned from AMP

amphtml.wordpress.com

81–90 of 95 posts

Re: Standardizing lessons learned from AMP

#81
post #35

So, this is pretty much everything the HN crowd was asking for, right? Pull AMP apart into a bunch of web standards and switch Google search to promote any content which follows those standards rather than AMP content specifically? Why are all the top comments so negative?

I managed to completely miss the point in the post. So much bloviating I switched off before I got half way through, and I'm someone who loves reading and routinely reads long blog posts.

Re: Standardizing lessons learned from AMP

#82

Earlier quoted context omitted.

Google is not replacing AMP, or promoting the standards group to replace AMP. Google is using things like web packaging with AMP, and intends to continue to do so. Their statements today, if anything, state a clear intent to continue to invest in and build on AMP. So, while all of these other components are going to be going to standards orgs, why not let them also have AMP? (A standards org is never beholden to keep…

Moreover, if you read their proposed “standards”, you can see how they want to just have the same AMP treatment for other pages. iframe promotion explicitly describes how AMP pages become “fast” (through preloading on Google Search pages) web packaging is just a way to have signed pre-rendered pages on a CDN. Together they give Google the power to cache/promote/“speed up” pages at will

No, together they give anyone aggregating content to do that, and they allow CDNs to serve up top level content with the original domain intact.

So much noise in these threads deliberating trying to concoct some hidden agenda around this rather than the obvious: the mobile web was a looming disaster, years of people advocating for writing fast pages failed, to the point that native apps were becoming silos to serve proprietary news content from. All of the macho-code jockeys here boasting how they can write fast pages don't seem to get that like 100 million pages out there are slow as molasses and efforts like AMP manage to fix A LOT of load issues that independent super-hackers didn't.

Independent efforts to spur people to optimize their sites and get some loading consistency failed -- multiple times. An industry wide effort is needed that deliberately pushes those, by carrot or whip, to improve the situation, giving them a cookie-cutter formula -- a subset of HTML and structure, validated for optimum parse, render, and caching, so that it is easy and consistent.

AMP was the first attempt at this. People don't like it because it's proprietary, don't like the UI choices, ok then, let's rectify that and get the W3C and browser vendors on board to have a neutral version. Let's address all of the problems and criticisms and make a public standard.

But stop pretending that if no one does anything the problem will go away. Yes, eventually it will go away, as more and more websites are replaced by native apps or embedded viewers in messaging or social apps like FB or WeChat, which become new proprietary browsers that eschew the web.

Accusing the AMP guys of ulterior motives is really wearing thin, AFAIK these guys love the web with a passion, they're trying to fend off an assault from native platforms. Most of these guys could go work on new hot-news at Google like new machine learning projects, they could have their pick of work, but have dedicated a lot of effort to make faster, a platform that a lot of people don't care about anymore and view as legacy.

How about a holding your gun-powder for once and see what comes out of this rather than setting off nukes.

Re: Standardizing lessons learned from AMP

#83
post #29
post #13

Are you allowed to put Google ads and tags in an iframe yet, so they don't hold up the page load?

Aren't they already async? https://support.google.com/adsense/answer/3221666?hl=en

Async still prevents the DOMcontentloaded event from firing, and if you can’t sandbox JS into an iframe you’re screwed security-wise if the linked source gets owned or turns evil.

Re: Standardizing lessons learned from AMP

#84
post #46

Earlier quoted context omitted.

Because 1 - they got caught with their hands in the cookie jar 2 - the internet isn't quite as dumb as google hoped 3 - thank god for the EU & Margrethe Vestager. Maybe we can talk her into adding a zero. ps -- that status, as near as I can tell, of the amp url fix is vaporware. Deployed yet? Nope. So let's wait to get all triumphant until their supposed solution is deployed. https://www.androidpolice.com/2018/01/09/…

How so? The user experience they wanted to achieve (provide an Apple News and Facebook Instant Articles experience on the web) was not technically possible. They added the hacks and workarounds that is AMP + AMP Cache + News carousel prerendering to Google to create something competitive. Now they're working with the standards bodies to remove the need for the hacks they've developed. Web Packaging (for loading and v…

Weird how the technical compromises they just had to make work out, well, wildly to their advantage. Better not piss off google or they break all links to your site!

Re: Standardizing lessons learned from AMP

#85

Earlier quoted context omitted.

Moreover, if you read their proposed “standards”, you can see how they want to just have the same AMP treatment for other pages. iframe promotion explicitly describes how AMP pages become “fast” (through preloading on Google Search pages) web packaging is just a way to have signed pre-rendered pages on a CDN. Together they give Google the power to cache/promote/“speed up” pages at will

No, together they give anyone aggregating content to do that, and they allow CDNs to serve up top level content with the original domain intact. So much noise in these threads deliberating trying to concoct some hidden agenda around this rather than the obvious: the mobile web was a looming disaster, years of people advocating for writing fast pages failed, to the point that native apps were becoming silos to serve p…

If they love the web, why are they fighting us, and ignoring everything we have to say? Google is not the web, and they are on two different sides.

Re: Standardizing lessons learned from AMP

#86

Earlier quoted context omitted.

Moreover, if you read their proposed “standards”, you can see how they want to just have the same AMP treatment for other pages. iframe promotion explicitly describes how AMP pages become “fast” (through preloading on Google Search pages) web packaging is just a way to have signed pre-rendered pages on a CDN. Together they give Google the power to cache/promote/“speed up” pages at will

No, together they give anyone aggregating content to do that, and they allow CDNs to serve up top level content with the original domain intact. So much noise in these threads deliberating trying to concoct some hidden agenda around this rather than the obvious: the mobile web was a looming disaster, years of people advocating for writing fast pages failed, to the point that native apps were becoming silos to serve p…

> Accusing the AMP guys of ulterior motives is really wearing thin, AFAIK these guys love the web with a passion, they're trying to fend off an assault from native platforms.

You are confusing individual people working on the project and the corporation that ultimately decides the entire direction of the project.

You are also assuming that all people are inherently good and will immediately leave if something morally questionable is asked of them, and that people can even realise that something is morally questionable.

In no particular order:

- Google is a corporation which is driven by two metrics: advertisement revenue and Monthly Active Users. AMP is driven to improve and increase the two.

- Every single discussion outside of implementation questions have been shut down by the AMP team. The latest round was about AMP4Email where the team has gone out of the way to derail, shut down and outright ignore any direct questions: https://github.com/ampproject/amphtml/issues/13597

- A regular AMP page rarely weighs less than 1 MB when reached from cold cache. The only reason they are fast is because: Google dominates search, and Google aggressively preloads AMP pages from its own huge geographically distributed CDN.

So when you click on an AMP page it's instant only because it's already been preloaded. Meanwhile Google's own page speed tools say that AMP are not fast. And to add insult to injury, AMP is not even valid HTML5. https://ferdychristant.com/amp-the-missing-controversy-3b424...

Of course independent superhackers can't do anything because they don't have Google-level infrastructure. Because Google makes AMP appear to be faster than even http://motherfuckingwebsite.com which is just text.

Just a quote: "The performance benefit of prerendering is enormous, so enormous that prerendered pages can load hundreds of KB of JavaScript and still display “instantly” by the time the user taps on a link." https://redfin.engineering/how-to-fix-googles-amp-without-sl...

- Taking the previous bullet point further: AMP is a hack that has nothing to do with actual website performance or "slimming down" of websites. The only reason AMP exists is because of Facebook Instant Articles. It's not because of walled gardens. It's not because of "open web". It's just the desire to not be outdone by competition and the strive for ad revenue and MAUs.

It's a way to promote a few select websites and penalise every other website, even those who strictly adhere to Google's own performance guidelines: https://developers.google.com/speed/docs/insights/rules

Any and all concerns about AMP where entirely dismissed by Google (and AMP team) until a significant portion of publishers have started voicing their concerns and some have even started pulling out of AMP.

Why publishers you ask? AMP is primarily targeted at publishers and publishers are the only ones even allowed to somewhat participate in AMP. To quote "Standardizing lessons": "constant adjustment to publisher and user feedback." which is half truth at best. The only working group on AMP is amp-news-publishers (https://github.com/ampproject/amphtml/blob/master/contributi...), and any "user feedback" that is allowed is "intents to implement" and comments on how a feature is implemented. All other discussions are shut down.

- The new standards proposed by Google only seek to cement the status quo.

Web Packages is a way to store signed prerendered and preloaded pages on a CDN

iframe promotion explicitly describes how and why AMP pages are "fast": they are preloaded in invisible iframes during search. The only goal of this proposal is to help google make those frames visible and switch the browser URL when the iframe is presented to the user.

This does not actually solve any performance issues. You can still develop your 8 MB site. However, it will load instantly just because Google has preloaded it while you were searching.

Do not be fooled by the use cases. The primary benefactor of aggressive preloading and caching is Google, who already has the entire infrastructure in place, and dominates search. No mater how much you try and adhere to all the performance guidelines, you will never beat a pre-rendered and preloaded page stored on Google's CDN.

- And yes. Ultimately the AMP team in its entirety fails to accept or acknowledge any shortcoming of AMP. Even the "Standardizing lessons" spew the same easily falsifiable myths around AMP heavily sugar-coated in self-aggrandizement.

On top of that, no matter how many times they say that the process is well-lit (they say it three times in the article), the process is entirely opaque, developed by Google, for Google, and in Google's products and then presented post-factum as a "standards proposal".

Re: Standardizing lessons learned from AMP

#87
post #45
post #37

Earlier quoted context omitted.

Probably because AMP should not have existed in the first place :) We already have everything we need to make fast and performant pages - we can't do it, because of marketing and trackers and spying and shit though: not technological factors, but human factors.

And yet, AMP has succeeded at getting publishers to deliver fast and performant pages where other efforts did not. I dispute the idea that technological factors are not at play here. AMP's preloading and automatic CDN caching system have a pretty big impact on load times, and its technically-enforced restrictions on what sort of performance-impacting content publishers are allowed to include in their pages seems to d…

- Open Chrome

- Open Chrome Dev Tools

- Switch to mobile view (to force chrome open AMP pages)

- Search in Google

- Open an AMP page

- Force refresh to force reload from cold cache

I've yet to find a page below 1 MB. I've routinely seen pages anywhere from 2 to 4 MB. So much for "slimmed down performant webpages".

The only reason they are "performant" is Google preloading them while you search

Re: Standardizing lessons learned from AMP

#88
post #26
post #23

Is anyone out there doing anything with AMP besides Google? It seems like it could be super useful for aggregator sites like Reddit. Or HN for that matter. Like a heavyweight version of OpenGraph meta tags.

The reddit AMP pages you land on from Google searches are particularly irritating. You aren’t logged in when you go to them, and various UI expectations are broken. Web packaging could help here since it would remove the google url, allowing cookies/sessions to function again.

I meant from the other direction. Like Reddit could pull the AMP versions of pages users link to.

As for their implementation of AMP pages for Google's use, I think that's sound strategy. People landing on Reddit from Google are at the lowest level of engagement and a lot of sites serve more ads conditionally based on your level of engagement. Native visitors get a better experience, logged in contributors get the white glove treatment.

Re: Standardizing lessons learned from AMP

#89
post #70

Earlier quoted context omitted.

Even so, I’m tired of jumping through hoops to adhere to bullshit standards that make life hard without any actual benefit. We have HTML and CSS, why do we need AMP? How does my personal webpage benefit from HTTPS? Why did they enforce mandatory HTTPS across the entire .dev TLD in WebKit, breaking my local test env, when it’s only used by a few internal projects at Google? They seem to have a vested interest in makin…

> We have HTML and CSS, why do we need AMP? Do you even know what AMP is?

Poor phrasing on my part. I meant that fast websites can already be built without adhering to the AMP standard.

Re: Standardizing lessons learned from AMP

#90
post #45

Earlier quoted context omitted.

And yet, AMP has succeeded at getting publishers to deliver fast and performant pages where other efforts did not. I dispute the idea that technological factors are not at play here. AMP's preloading and automatic CDN caching system have a pretty big impact on load times, and its technically-enforced restrictions on what sort of performance-impacting content publishers are allowed to include in their pages seems to d…

- Open Chrome - Open Chrome Dev Tools - Switch to mobile view (to force chrome open AMP pages) - Search in Google - Open an AMP page - Force refresh to force reload from cold cache I've yet to find a page below 1 MB. I've routinely seen pages anywhere from 2 to 4 MB. So much for "slimmed down performant webpages". The only reason they are "performant" is Google preloading them while you search

Yes, the preloading is a dirty trick. Google has the power to play dirty and noone dares to slap him in the face anymore.

Don't be evil -> do the right thing -> do what's right for Google.

Post reply on HN