by HALtheWise · 7y ago · 0 comments
The key technique that AMP promises will beat the limits of network latency is precaching. Unfortunately, users have a strong privacy expectation that random websites will not be notified that you are interested in them until you actually click the link in search results (or news, or whatever). For precaching to work without violating user privacy, the data needs to be loaded from some server that already knows that the link was shown to you, so there is no privacy violation from giving it that information. AMP's solution is for the host company of the results page to fill that role.
The AMP lightning bolt is intended to mean "this page is already downloaded offline on your device, and so will load instantly", not just "this page is well-designed and fast". The difference is minor for blazing fast connections, but that isn't true for developing world users with weak connections and devices.
Google has said that when open web standards like Web Packaging finally show up which enable the same safe preloading behavior, those sites will be included in AMP carousels. We'll see whether they follow through with that. [1] [2]
* All experiments conducted with cache disabled, times are until Load event fires.
[1] https://blog.amp.dev/2018/03/08/standardizing-lessons-learne...
[2] https://github.com/ampproject/amphtml/blob/master/contributi...
Disclosure: I work on AMP.
Do you all just not think about the long-term implications of what you're building? It's going to destroy the open WWW.
Web publishers (and other people who are paying attention) don't want AMP or Portals, but they are being strong-armed into it under threat of losing their traffic.
And the worst thing is, without these publishers, Google would have no content and therefore no value.
Yes, sub-100ms is attractive. But what do you compromise to achieve that goal?
Who pays the price? Publishers who are already struggling, so that the only content on the web becomes content farm affiliate sales shit?
The first thing that effects page time is network latency and there is no getting around that. AMP may help because google has lots of servers that may be closer, but if the underlying network is slow. AMP will still be slow.
Also the next thing is frame size. If the network path has high latency, but the ability push large frames you can send more per request. This is where things like inlining can help. It also reduces the request number.
AMP can't get rid the properties of the network. It's also generally the last mile that is slow not back bone.
-edit- I find it interesting that the github link provided mentions portals are for "AMP Carousel like UI with navigation to publisher (alternative to iframe promotion)"
Sure, none of this is true if the user manually types into the address bar, but most web navigation isn't done that way.
https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading...
You can also prefetch.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefe...
Also preloading/pre-fetching does not get around latency. It just changes when it happens.
> Unfortunately, users have a strong privacy expectation that random websites will not be notified that you are interested in them until you actually click the link in search results (or news, or whatever). For precaching to work without violating user privacy, the data needs to be loaded from some server that already knows that the link was shown to you, so there is no privacy violation from giving it that information. AMP's solution is for the host company of the results page to fill that role.
Saying there they removed latency is like saying they’ve removed the speed of light. Didn’t happen, they just preload content for you, because in you’re case, it’s possible to do so.
It’s disingenuous to compare AMP style loading with a normal page visit and say “AMP is faster”; if I could preload my webpage before you click on it, it would be faster to load as well! That doesn’t actually mean the website is any faster.
It is perceived as faster by the users, and that's the only standard of speed that users really care about.