News for hackers. Stuff that matters.
Re:We're Bullish on AMP by ryanmaynard on Tuesday August 16, 2016 @07:57AM (#12296813)
I recently setup a simple Jekyll blog that conforms to amp[1]. I used Amplify[2], a repo that was on Show HN[3] a few months ago.

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

Re:We're Bullish on AMP by rikkus on Tuesday August 16, 2016 @08:42AM (#12297057)
I loaded this on a 4g connection and it took 14 seconds from click to progress bar disappearing. AMP talks about sub second load times on mobile. What might be in the way of that being realised?
Re:We're Bullish on AMP by ryanmaynard on Tuesday August 16, 2016 @09:27AM (#12297319)
Thank you for this. Google attempts to validate the AMP rules. If not validated, they won't cache it. Error on my part (misuse of their amp-analytics tag).
Re:We're Bullish on AMP by 6DM on Tuesday August 16, 2016 @09:00AM (#12297150)
I just opened the site in chrome and did a hard refresh on the Good 2G setting of the chrome tools, only took 3 seconds. Maybe you're cell phone dropped the connection or something.
Re:We're Bullish on AMP by kuschku on Tuesday August 16, 2016 @09:15AM (#12297233)
It takes about 12 seconds on a 64k connection (the default if you used up your data cap).

In contrast, HN loads in half a second on that connection.

Obvious result: AMP is bloated.

Re:We're Bullish on AMP by ryanmaynard on Tuesday August 16, 2016 @09:21AM (#12297279)
I don't think its AMP. I think its my fault. Out of the box, you can't place analytics on the page. There is a special tag for any analytics. It seems I'm getting an error, and so Google has not cached it. Thank you for telling me. I need to debug that.

That being said, I just received 239 ms with Pingdom.[1]

[1] http://i.imgur.com/qeEyKqL.png

Re:We're Bullish on AMP by kuschku on Tuesday August 16, 2016 @04:23PM (#12300360)
Well, cache doesn’t matter when the page is almost a quarter megabyte, but you have only a 64kib connection.

The majority of time spent will be on getting the 170kiB AMP lib.

Re:We're Bullish on AMP by mark_l_watson on Tuesday August 16, 2016 @09:46AM (#12297426)
Your site did load very quickly for me. Basically, Google is also your CDN with AMP?
Re:We're Bullish on AMP by ryanmaynard on Tuesday August 16, 2016 @10:41AM (#12297738)
Yes. There are limits to what you can place in an AMP site. Basically, its all static assets, so the entire AMP version is supposed to be cached by Google.
Re:We're Bullish on AMP by gorhill on Tuesday August 16, 2016 @11:09AM (#12297950)
> the entire AMP version is supposed to be cached by Google

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?

Re:We're Bullish on AMP by ryanmaynard on Tuesday August 16, 2016 @11:47AM (#12298200)
Its the Google Amp Cache[1]

> What gets cached?

> If an AMP page is valid and is requested (so the Google AMP Cache is aware of it), it will get cached. Any resources in AMP pages, including AMP images, also get cached.

> Can I stop content from being cached?

> No. By using the AMP format, content producers are making the content in AMP files available to be cached by third parties. For example, Google products use the Google AMP Cache to serve AMP content as fast as possible.

> Can the cache be crawled?

> No. The Google AMP Cache is roboted to crawlers. We recommend that search engines process cache links according to the guidelines for crawling Google AMP Cache URLs. For more information, see robots.txt."

[1] https://developers.google.com/amp/cache/faq