我知道很多网站管理员认为页面速度毫无意义。然而,我相信这个因素是谷歌决定对任何网站进行排名的前三名因素之一。
我厌倦了看到谷歌自己的服务如何减慢我的网页速度。我编写干净的代码。当我启动任何网站/应用程序时,它在 GTMetrix 和 Pingdom 上得分为“A”,在 Google Page Speed(移动)上得分为 100/100。一般来说,Google Ads 不会损害桌面版本。
然而,一旦我添加至少一个 Google 广告,我的排名就会下降至“C”和 60-67/100(移动)。
当然,有人可能会说页面速度不是 SEO 排名因素。好的,对于《纽约时报》、《华尔街日报》、《Bustle》、《赫芬顿邮报》等,可能是这样。但对于任何新网站来说,速度是一个至关重要的因素。
不公正的是,谷歌指出了自己的服务,这减慢了我(和你)的项目,例如:
有 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 Page Speed(移动)方面得分为 100/100,并且在一个网页上投放了 2-3 个 Google Ads?