104 points · by bergie · 10y ago · 105 comments
For me, as long as I disable javascript, the modern mobile web is plenty fast enough. That is, the bits of the web I want to use on the move: mostly text, occasional pictures. It takes real effort to break this with javascript disabled. Most JS on e.g. news sites, blogs, aggregators etc. is tracking and ad related, dynamically adding links to viral content, all that stuff you don't need and dramatically slows down sites through repeated reflow.
Fortunately for anyone with Apple phones, content blockers should still work on AMP pages.
It might be better for their bottom line (I haven't thought about it much, but it makes sense that it would be, so I'll just go with that), but that doesn't mean it isn't also better for the web and users. Same thing with Facebook Instant Articles. I now find myself, as a user, vastly preferring these sites on mobile, because they are far less likely to hang or hijack my browser.
If anything I would assume the opposite - since practically everyone else can use Firefox (mobile) and all its plugins to avoid this issue.
Given the massive security and privacy flaws of JavaScript, anything that encourages people to leave it enabled is objectively nefarious.
In extremis, they could do what Opera Mobile used to do, and supply a pre-rendered image to the end user. I don't think they'll do that (it wouldn't be very trackable, for one), but it's possible.
What's risky about it for Google? They can back down at any time they want (this includes injecting ads directly in AMP pages, precluding competitors from doing the same because they control Chrome).
They have shown again and again that they don't give a shit about lost investments for web developers.
I'm of the opinion that infestation of upper ranks of companies by these kinds of people is what ultimately leads to their demise (or rather, regression to the mean of mediocrity). These people use up goodwill and generate resentment. When they're given too much leeway, they can push hard enough to attract government anti-trust attention and tie the company up in knots for years. They suck the soul out of companies by promoting a nihilistic vision of capitalism. They encourage attributing cynical motivations about any future action of the company (think Microsoft); it can take decades to shake that off.
So, the risks are both reputational and potentially regulatory, and they're cumulative. Yes, Google has cost goodwill in the past; but they don't have zero goodwill yet, and nor do they have infinite goodwill.
The devs working on news sites understand the current state of bloated pages is bad and are eager to create fast, sexy pages. Unfortunately there are entities such as BizDev and AdOps that want to add more stuff to the pages to make more money, and it's easier to quantify ROI for a new ad placement compared to shaving 100ms off page load times. So we end up with dozens of scripts and script loaders and all sorts of other things. Editors and product managers want responsive pages with ad placements and enhanced functionality.
Along comes AMP, and all of the above are freaking out at the loss of control while I'm gleefully looking at super fast loading times and pages that still have most of the important functionality and ads.
Yes, the script size is large, but it will be cached amongst all AMP pages and it's refreshing to not have to think about implementing responsive pages, lazy loading, etc. because AMP handles all that.
But it's come out controlled by the major search engine, that will promote and highlight pages in it's search rankings if you adhere to their new "open" standard.
It may still be good, but leaves a bad taste in my mouth.
I think this is an important issue because the HTML spec is crazy long and it would be awesome for new technologies (say a new desktop GUI library or whatever) to be able to say "we allow and will interpret this subset some HTML" without committing to the entire byzantine spec.
We need a name for this and since it's HTML5 with stuff removed we can call it HTML5--, so HTML4 ;)
Having a new gatekeeper in addition to the standards bodies that we have to get all new features by holds back the Web.
It would be great if we didn't have to worry about performance, I hope WebRender gets us there some day, please do continue your work and hopefully the fact that some subset of news sites aren't using features doesn't hold you back.
In the meantime I'm going to avoid using with(), use requestAnimationFrame to prevent dom thrashing, put my scripts at the end of the body, and do all of the things maybe some day I won't have to do.
Edit: Looks like you updated your comment. Initially it asked who could competing adopters be.
It seems to me like they're trying this a lot lately, Structured Data is the other example that comes to mind. Creating "web standards", that are supposed to help a website, but are really most helpful to Google and their crawler. Then giving an SEO boost to anyone who uses those standards. And then once enough people are using those standards, just display the relevant parts of the results directly on google.com
I get that it being hosted on Google allows the servers to respond more quickly, but do you think news websites that added these features with the promise of better performance and an SEO boost were aware their articles would be one thumb-swipe away from a competitor's articles?
"Static" meaning "Not changing over time" rather than "Dynamic" meaning "changing over time". That usage is not common outside of math, but I have on occasion seen it used this way when discussing web programming.
There are still a few issues with their docs at this point, but its basically just inline css/js.
[1] http://ryanmaynard.co/ [2] https://github.com/ageitgey/amplify [3] https://news.ycombinator.com/item?id=11287540
In contrast, HN loads in half a second on that connection.
Obvious result: AMP is bloated.
Does this means there is no way to opt out of connecting to a Google-controlled server in order for any AMP-based page to display properly?
WebSockets for a long time (is it still true?) could not run over a SPDY/HTTP 2 connection. SPDY itself had multiple fundamentally incompatible versions in the wild before things settled down (they changed how negotiation was implemented), WebSockets and SPDY duplicate many of the same concepts (yes, really), Quic seems utterly ignorant of the early history of the Internet and the importance of flow control, and now AMP.
AMP it seems to me, is a standard designed around the current era shortcomings in the implementation of Google Chrome (and similar browsers). It's hard to get more myopic than that.
No. It's the responsibility of search engines and apps to choose whether to send visitors to AMP pages. If Google crawls your site and finds AMP pages, it'll send mobile users to them from search.
Ouch, that hit a nerve. Too early in the day, man.
I've seen more AMP pages on the web than I have the Facebook version of it for what it's worth. The article went in to detail about how the pages were designated as an AMP. it seems somewhat elegant. It's opt-in but there's definitely an advantage to adding the mark-up to your page.
So the proxy learns all about my traffic patterns, usage stats and userbase.
It looks like you can't opt-out of this feature or at least I couldn't find it.
Hardening back to "only two hard problems in programming" and all that.
"Contain a <script async src="https://cdn.ampproject.org/v0.js"></script> tag as the last element in their head (this includes and loads the AMP JS library)."
This is the big no go for me here - why would I need an AMP library, hosted on a third party domain I have no control watsoever. They can inject what they like, track initial script load etc.
The same goes on if you want to include further content such as tweets etc.
What do other folks think about these requirements?