AMP up your life —

Google wants to speed up the mobile web with AMP project

Accelerated Mobile Pages blocks some HTML, CSS, and JavaScript.

Google wants to speed up the mobile web with AMP project

Google has a plan to speed up mobile Web browsing. The recently unveiled AMP—Accelerated Mobile Pages—project is an open source initiative that restricts certain elements of HTML, CSS, and JavaScript to produce leaner Web pages "that are optimised to load instantly on mobile devices." How much quicker is "instantly"? According to Google, early testing with with a simulated 3G connection and a simulated Nexus 5 showed improvements of between 15 to 85 percent.

It's all very clever, but at the same time very simple. "AMP HTML," which sits at the core of the idea, wants to do things like minimize HTTP requests to fully lay out a document and only downloads images when they're likely to be seen. There is a trade-off, however. Third-party JavaScript code, for example, has no place in the AMP environment. Even CSS is being constrained; properties like transition, filter, and animation are currently banned. You won’t be able to implement scroll bars either, or have a CSS stylesheet that exceeds 50,000 bytes.

According to AMP tech lead Malte Ubl, part of this decision can be attributed to the performance issues caused by the usage of multiple JavaScript libraries, tools, embeds, and so forth. Ads and analytics are being subjected to similar treatment. AMP disallows ads from being directly embedded into a website, requiring instead that they are placed into sandboxed iframes with no access to the primary documents. On the other hand, it’s possible to embed analytics that utilise so-called “tracking pixels” in AMP documents. Anything that requires the use of JavaScript, however, remains unsupported.

These initial specifications may change, however. The AMP draft spec has been available on Github since yesterday, but there are plans for more features including “functional support for subscription models as well as vendor support for advertising function.”

Despite all these restrictions, the AMP website says that big websites such as Buzzfeed, The Huffington Post are on board. The parent company of Ars Technica US, Condé Nast, is also listed, along with the CMS platform WordPress. Analytics companies, such as Chartbeat, Parse.ly, and Adobe, are also listed. 

Google’s new initiative is a great idea, but that may not be the reason compelling the participation of these publishing partners. For a while now, the search engine behemoth has been pushing for more faster-loading websites, beginning with a call to avoid the usage of Adobe Flash. Most recently, Google revealed that search results would favour “mobile-friendly” sites.

So, essentially, it’s a case of carrot and stick: you don’t have to use AMP, but there'll be a strong impetus to do so. Mobile devices contribute to roughly 37 percent of traffic, a number that few sites can afford to miss out on. The only question is: how willing are you to stomach Google’s demands?

Channel Ars Technica