AMP启用桌面站点是否有意义? [英] Does it make sense to AMP enable a desktop site?

查看:117
本文介绍了AMP启用桌面站点是否有意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Rails网站Sensr.net,可以在移动设备上自适应渲染.我正在考虑AMP启用该网站.我们提供了一个移动版本,因此AMP在这里有意义,但是对于网站的桌面版本有意义吗?

I have a rails site, Sensr.net, that adaptively renders on mobile. I'm thinking of AMP enabling the site. We render a mobile version and so AMP makes sense there, but does it make sense for the desktop version of a site?

推荐答案

如果您已经在运行两个版本并且适用于您,那么最好只为移动设备创建AMP版本.如果您希望合并到一个版本以便于维护,那么请务必使用AMP创建一个可在台式机和移动设备上进行渲染的自适应网站.

If you're already running two versions and it works for you, you're probably better off creating an AMP version for mobile only. If you're look to consolidate to one version for easier maintaining purposes, by all means use AMP to create a responsive site that renders on both desktop and mobile.

尽管AMP缓存不是台式机上Google搜索的一部分,但由于AMP设置的严格要求迫使您精简网站,因此您会在台式机上看到一些性能提升.仍然可以通过台式机上的AMP CDN提供JavaScript.

While the AMP cache isn't part of a Google search on desktop, you will see some performance gains on desktop due to the strict requirements set by AMP that force you to make your site leaner. The JavaScript is also still served up through the AMP CDN on desktop.

我所工作的公司使用AMP作为框架来创建可在台式机和移动设备上运行在AMP上运行的响应式网站( https://www.craigattachments.com ).某些内置的AMP组件(例如amp-sidebar和amp-carousel)使其变得非常容易,因为我们不必寻找其他解决方案.

The company I work for used AMP as a framework to create a responsive site that runs on AMP for both desktop and mobile (https://www.craigattachments.com). Some of the built in AMP components such as amp-sidebar and amp-carousel made it pretty easy as we didn't have to look else where for solutions.

这里有一篇文章,对于我们决定使用AMP作为框架而不是仅将移动网站用作框架非常有用: https://www.ampproject.org/latest/blog/amping-up-the-amp-framework/.

Here's an article that we found pretty helpful in making our decision to use AMP as a framework versus just a mobile site: https://www.ampproject.org/latest/blog/amping-up-the-amp-framework/.

特别是...

不要让这个名字愚弄您

AMP代表加速的移动页面".用最简单的术语来说,它阻止了导致网络在移动设备上加载速度较慢的大多数元素,例如大量的JavaScript,第三方跟踪脚本和膨胀的CSS.它允许内容几乎立即加载. AMP是专为缓存的页面而设计的,但是现在它已发展成为用于修复移动Web的更广泛的工具集(由于当今大多数用户是移动用户,因此某些网站加载仍可能需要几分钟的时间). 尽管M代表移动设备,但AMP绝对可以帮助提高任何设备或浏览器类型上的加载速度.

AMP stands for "Accelerated Mobile Pages". In the simplest of terms, it blocks most of the elements which causes the web to load slower on mobile, like large amounts of JavaScript, third-party tracking scripts and bloated CSS. It allows content to almost instantly load. AMP was designed for cached pages, but it is now growing into a broader toolset to fix the mobile web (as the majority of users are mobile today, some site loads still can take minutes). Although the M stands for Mobile, AMP can absolutely help improve loading speeds on any device or browser type.

这篇关于AMP启用桌面站点是否有意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆