我知道很多网站管理员认为页面速度无关紧要。然而,我有信心说这个因素是谷歌决定排名任何网站的前三大因素之一。
我厌倦了看到谷歌自己的服务拖慢我的页面速度。我编写干净的代码。当我启动任何网站/应用程序时,在GTMetrix和Pingdom上得分为“A”,在Google Page Speed(移动版)上得分为100/100。通常来说,Google广告不会损害桌面版本。
然而,一旦我添加至少一个Google广告,我的排名就下降到“C”和60-67/100(移动版)。
当然,可能有人会说页面速度不是SEO排名因素。好的,对于《纽约时报》、《华尔街日报》、Bustle、HuffPost等可能是。但对于任何新的网站来说,速度都是至关重要的因素。
不公正的是,谷歌指出了它自己的服务会拖慢我的(和你的)项目,如:
有6个静态组件没有长期过期日期。
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
https://code.jquery.com/jquery-3.3.1.min.js (not Google)
https://adservice.google.ca/adsid/integrator.js?domain=xxx
https://adservice.google.com/adsid/integrator.js?domain=xxx
https://pagead2.googlesyndication.com/pub-config/r20160913/ca-pub-
xxx.js
https://fonts.googleapis.com/css?
family=Open+Sans:400,700|Roboto:700&lang=en
减少DNS查找:
pagead2.googlesyndication.com: 6 components, 368.9K (136.4K GZip)
code.jquery.com: 1 component, 86.9K (30.2K GZip)
adservice.google.ca: 1 component, 0.1K (0.1K GZip)
adservice.google.com: 1 component, 0.1K (0.1K GZip)
googleads.g.doubleclick.net: 11 components, 173.4K (45.9K GZip)
fonts.googleapis.com: 1 component, 7.0K (0.6K GZip)
tpc.googlesyndication.com: 5 components, 153.0K (57.0K GZip)
www.google.com: 1 component, 0.2K
避免URL重定向:
https://www.google.com/pagead/drt/ui redirects to
https://googleads.g.doubleclick.net/pagead/drt/si
减少 JavaScript 执行时间:
/pagead/ads?client=…(googleads.g.doubleclick.net)
/pagead/ads?client=…(googleads.g.doubleclick.net)
…js/adsbygoogle.js(pagead2.googlesyndication.com)
…r20100101/osd.js(pagead2.googlesyndication.com)
…r20180604/show_ads_impl.js(pagead2.googlesyndication.com)
…activeview/osd_listener.js(tpc.googlesyndication.com)
我知道我无法在他们的网站上编辑代码。但是也许有某种方法可以推迟Google广告或使用其他技巧来减少Google自己服务的危害?是否至少有人在页面上放置2-3个Google广告,同时在Google Page Speed(移动版)上获得100/100的分数?