AMP support for WordPress

Automattic Adds AMP Support to WordPress.com, Releases Plugin for Self-Hosted Sites
by Sarah Gooding, WordPress Tavern
February 24, 2016

What makes AMP pages load so quickly? Google has a strict set of optimizations that are employed to improve mobile loading:

  • Allow only asynchronous scripts
  • Size all resources statically
  • Don’t let extension mechanisms block rendering
  • Keep all third-party JavaScript out of the critical path
  • All CSS must be inline and size-bound
  • Font triggering must be efficient
  • Minimize style recalculations
  • Only run GPU-accelerated animations
  • Prioritize resource loading
  • Load pages in an instant

To see just how fast AMP is, check out the Google search demo at g.co/amp.

Automattic also released a plugin that allows self-hosted WordPress users to take advantage of the mobile performance improvements offered by AMP. The plugin has been tested since October and is currently active on 8,000 installs. For most users, it’s as easy as installing the plugin and activating it. The default styles are fairly generic but developers can refer to the documentation on GitHub to further customize AMP styles.

Read more…

Notes:

  1. There is an error in the WordPress Tavern article: To check your amp versions of posts, append /?amp to the end of the URL rather than /amp/ which on some installations will generate a 404 not found error.
  2. The plugin does not serve up AMP versions of WordPress pages, just posts.

Leave a comment

Your email address will not be published.


*