New Google thing, aimed at unsucking the “mobile” web:

The Accelerated Mobile Pages (AMP) Project is an initiative to improve the mobile web and enhance the distribution ecosystem. If content is fast, flexible and beautiful, including compelling and effective ads, we can preserve the open web publishing model as well as the revenue streams so important to the sustainability of quality publishing.

Curious the focus is on mobile only. The web has suck problems everywhere, and really, what is “mobile” these days? If I made a version of my site out of this, is it on me to diverge my traffic to the correct version? This maybe?

Through the spec, Google suggests that developers use a limited subset of HTML (and CSS_, known as AMP HTML (e.g. no transitions, no animations, no filters…) To validate your website to this specification certain markup elements are not allowed and a boilerplate document is provided to help get developers started.

The AMP JavaScript library manages all resource loading, validating all the code to the spec and gives us access to custom AMP elements (carousels, embedded tweets, etc) which have been designed specifically with performance in mind. Zero third-party (even hand-authored) JavaScript.

The open source project reveals even more restrictions:

Primarily we are aiming at reducing the time until the content of a page can be consumed / used by the user. In concrete terms this means that:

  • HTTP requests necessary to render and fully layout the document should be minimized.
  • Resources such as images or ads should only be downloaded if they are likely to be seen by the user.
  • Browsers should be able to calculate the space needed by every resource on the page without fetching that resource.

Developers have compared this project to Facebook