Android Police now supports Google AMP, and you'll like it even if you hate …

by Kelvin
Android Police now supports Google AMP, and you'll like it even if you hate ...

Accelerated mobile pages, or 'AMP' for short, are projects that Google has been working on for several years that make it easier for sites to create a faster mobile experience. You've probably seen that most of your favorite sites add support for AMP in the last year or two, and now you can have Android Police (your favorite site of course) among them!

It's no use!

  

The implementation of @AMPhtml under-theOur age is a year of manufacturing and as a result some of the best in the business.

Very fast and capable, it matches the main site as closely as possible in appearance and function which is well known. pic.twitter.com/S4iOdZyp9G

– Artem Russakovskii (@ArtemR) August 30, 2019



So what took us so long, you might ask? Well, we've spent an entire year working on a highly customized version of AMP that looks and feels almost exactly like the original site. All the design elements look the same, the comments section works (many sites forget that part!), Videos and other embedded content are fully functional, and everything is generally where you expect it. However, you can still get the benefits of AMP speed, because items don't load until you scroll down to get them. You can see a demo here.

Android Police now supports Google AMP, and you'll like it even if you hate AMP 1

Left: Regular page; Right: AMP page

If you are on the AMP version of the page and want to see the original version, there is a handy link just below the article title. Most sites make it very difficult to return to the original page, and although our AMP site is basically the same as a mobile site, we still include links. Only articles have AMP versions, not home pages, categories, tags, etc.

Image galleries are one of the best aspects of AMP articles. It is very smooth and responsive, and you can swipe it at any time to close the popup.

See the AMP gallery on the AMP @ AndroidPolice site. The best part is swiping to discard. I personally like it. pic.twitter.com/ZypDkkuP10

– Artem Russakovskii (@ArtemR) August 31, 2019

Some work for AMP has had a positive effect on the main site. For example, because AMP doesn't allow custom JavaScript, we have to create a new resizing method for images (and videos, and other embedded content) that is completely CSS and PHP based on the server side. We launched a new implementation earlier this month on the main site, which eliminates the problem of annoying ups and downs of annoying pages on mobile devices forever.

Now directly at https://t.co/lCN5IQmDXV!

Don't wait any longer for the full page to load so that all images and sizes are incorporated into the cell size; resizing is now instant and done in CSS. https://t.co/0TevBL1Ub7

– Artem Russakovskii (@ArtemR) August 6, 2019

We've also signed up for Google's 'AMP Real URL' program, so visit the AMP page in Chrome it will immediately show "androidpolice.com" in the address bar instead of the Google URL (when you visit Google Feed / News / Search / etc.). The release depends on some server-side magic, and it will happen sometime in the next few days.

The only mistake you may notice is that the full screen image gallery sometimes skips images when swiping. This is due to a problem with the official AMP gallery, not anything we've done, and Google techs say it will take several weeks to fix the error.

It took considerable effort to get our AMP page to complete the features with the main site, and I don't think it's too heavy to say that it's one of the best implementations on the web today. If you have been waiting for this, be sure to thank our talented development team: Artem, Maciej, Sebastiaan, Stephan and Vlad.

If you find an error, please let us know by raising a problem with GitHub or submitting a suggestion.


escort malatya escort bursa escort antalya escort konya mersin escort