Live data from Hacker News

WordPress Sites Now Support Google’s AMP to Make Mobile Pages Load Faster

techcrunch.com

1–10 of 52 posts

Re: WordPress Sites Now Support Google’s AMP to Make Mobile Pages Load Faster

#2
As I've noted elsewhere: to use AMP, you must load JavaScript from the AMP CDN, which is operated by Google. So you are handing over the security of your site and your user's privacy to them. From https://github.com/ampproject/amphtml/blob/master/spec/amp-h...: > The AMP runtime is loaded via the mandatory " rel="nofollow">https://cdn.ampproject.org/v0.js"> tag in the AMP document .

Re: WordPress Sites Now Support Google’s AMP to Make Mobile Pages Load Faster

#3
I've got Ublock Origin and funnily enough, the LongReads example AMP page loads only marginally faster than the "full" one. I don't understand why people can't just remove all of the crap from their main pages rather than relying on this Google-sponsored equivalent?

Re: WordPress Sites Now Support Google’s AMP to Make Mobile Pages Load Faster

#5
I'm assuming this TC article thinks its audience is WordPress content-creators and not just media companies? Here's its first acknowledgement of tradeoffs (or rather, that the tradeoffs are no big deal)

> And you don’t lose much as AMP markup supports a wide range of features. For instance, AMP has worked with ad networks, such as Outbrain, AOL, OpenX, DoubleClick and AdSense, to create optimized tags for mobile pages. So you can still put ad tags in your AMP-enabled pages. Similarly, you can add analytics tools. But these JavaScript calls will be optimized.

I've never been in the work of dealing with ads though now that I think about it, that probably is one of the key things that the average, devoted content-creator would care about.

But I do think this is a bit underplayed:

> As for all the things that usually slow down web pages today, such as embeds, JavaScript-heavy content or Flash, WordPress strips out this content from the AMP pages. Comments are also omitted by default.

So...YouTube videos and things like embeddable Google Maps are not allowed? I was assuming "no"...because that is Google's bottom line...(also, they're whitelisted in the spec's extensions [1]). And I know the anti-comments-section sentiment is strong in the media industry, but kind of weird to see "oh yeah, no comments" as an afterthought. I'm assuming that means no WordPress comments (which come built-in with a standard WP install)...but what about Disqus and Facebook? There are more than a few media companies in which comment sections are more than trivially important.

[1] https://github.com/ampproject/amphtml/blob/master/extensions...

Re: WordPress Sites Now Support Google’s AMP to Make Mobile Pages Load Faster

#7
WordPress is schizophrenic

Oh hey let's load up your webpages with all this cr*p by default, tons of javascript, css, external files, fonts, headers, footers useless markup.

Oh hey, let's use this plugin to strip all that out.

How about not putting it in there in the first place.

Re: WordPress Sites Now Support Google’s AMP to Make Mobile Pages Load Faster

#8
post #2

As I've noted elsewhere: to use AMP, you must load JavaScript from the AMP CDN, which is operated by Google. So you are handing over the security of your site and your user's privacy to them. From https://github.com/ampproject/amphtml/blob/master/spec/amp-h... : > The AMP runtime is loaded via the mandatory " rel="nofollow">https://cdn.ampproject.org/v0.js"> tag in the AMP document .

AMP is just a subset existing web technologies. It's entirely possible to build a page that loads just as fast or faster, without loading the AMP scripts, if you so choose. But AMP greatly simplifies the process, which is what developers need, and the script enforces the limitations necessary to make the page load and render quickly, which users love.

Right now AMP is under heavy development and lots of changes are being made very quickly. That mandatory script loads other resources from the same domain on an as-needed basis, which is a crucial aspect of how AMP is designed to work. I don't know if the v1 release will include a distribution package for self-hosting, but it's not too much of a stretch to believe they've decided to go with a central CDN just to simplify development for the early stages of the project.

At any rate, this is no worse in principle than the Google Analytics scripts everybody includes on every page everywhere, so it's mostly just a bunch of FUD.

Re: WordPress Sites Now Support Google’s AMP to Make Mobile Pages Load Faster

#9
post #6

No, your WP site supports AMP if you haven't bothered to do anything custom and don't care about anything other than standard design.... in which case you have work ahead of you.

Definitely—but far less work than starting from scratch. The goal was not to make it 100% plug-and-play for everyone, because that would be...impossible. :)

Re: WordPress Sites Now Support Google’s AMP to Make Mobile Pages Load Faster

#10
post #7

WordPress is schizophrenic Oh hey let's load up your webpages with all this cr*p by default, tons of javascript, css, external files, fonts, headers, footers useless markup. Oh hey, let's use this plugin to strip all that out. How about not putting it in there in the first place.

lol
Post reply on HN