AMP HTML is HTML with some restrictions for reliable performance and some extensions for building rich content beyond basic HTML. The AMP JS library ensures the fast rendering of AMP HTML pages. The Google AMP Cache (optionally) delivers the AMP HTML pages.
Last October, Google announced the introduction of its Accelerated Mobile Pages project, a new open-source initiative aiming to “dramatically improve the performance of the mobile web.”
For several reasons I decided to give AMP a runthrough on my own site. Firstly, my site is almost entirely static - making it a perfect candidate. Secondly, the content that primarily changes are the articles, like this one. Last, but not least, I want to give my site the fastest possible deliver in the most performant manner.
Leading up to this switch I had always taken pride in my clean semantic markup and lean CSS. In fact, when it came time to inline my CSS in the “amp-custom” style tag (which has a limit of 50kb) I was pleasantly surprised that I was already under that threshold.
<nav> to be entirely HTML/CSS - which is nice.
On my TODO list are integration of AMP’s modal/dialog boxes and playing with the carousels.
Lot’s more to come - but the end result is a homepage that now loads in 563ms.
With that kind of speed I can’t complain and neither will visitors to my site.