قالب وردپرس درنا توس
Home https://server7.kproxy.com/servlet/redirect.srv/sruj/smyrwpoii/p2/ Technology https://server7.kproxy.com/servlet/redirect.srv/sruj/smyrwpoii/p2/ Android Police now supports Google AMP, and you'll love it even if you hate AMP

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



Accelerated Mobile Pages, or "AMP" for short, is a project that Google has been working on for several years that makes it easier for sites to create faster mobile experiences. You've probably seen most of your favorite sites add AMP support in the last year or two, and now you can count Android Police (your favorite site, obviously) among them!

So, what took us so long, you might ask? Well, we spent a whole year working on a highly customized version of AMP that looks and looks almost exactly like a real site. All design elements look the same, the comment section works (many sites forget this part!), Videos and other embedded content is fully functional and generally everything is where you would expect. However, you can get the benefit of AMP speed, since the elements do not load until you scroll down to them. You can see a demo here.

Left: Regular page; Right: AMP Page

If you come across the AMP version of a page and want to see the original version, there is a convenient link just below the title of the article. Most sites make it extremely difficult to return to the original page and although our AMP site is generally the same as the mobile site, we have somehow dropped the link. Only articles have versions of AMP, not homepage, categories, tags, etc. N.

The image gallery is one of the best aspects of AMP articles. It is super smooth and responsive and you can drag down at any time to close the popup menu.

Some of the work for AMP already has a positive effect on the main site. For example, since AMP does not allow custom JavaScript, we needed to create a new image resizing method (both video and other embedded content) that is entirely server-side based on CSS and PHP. Earlier this month, we implemented the new implementation of the main site, which gets rid of the annoying problem of downloading images for jumping up and down on mobile devices once and for all.

We also signed up for Google's AMP Real URL program by visiting AMP's Chrome page should soon display "androidpolice.com" in the address bar instead of a Google URL (when visiting from Google Feed / News / Search / etc). The development is dependent on some magic on the server and this should happen sometime in the next few days.

The only mistake you may notice is that the full-screen image gallery sometimes skips images while dragging. This is due to a problem with the official AMP gallery, not everything we did, and Google engineers say it will take several weeks to fix the bug.

It took considerable effort to get our AMP pages fully functional with the main site, and I don't think it's hard to say that this is one of the best conversions on the web today. If you've been waiting for this, be sure to thank our talented development team Artem, Matthew, Sebastian, Stefan and Vlad.

If you find an error, let us know by submitting a GitHub release or by sending a tip.


Source link