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
- 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.
- 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.
- The plugin does not serve up AMP versions of WordPress pages, just posts.