为网站添加 Google +1 按钮[加速版]

引:Facebooook 有 Like Button, Tvvitter 有 Tweet Button,人人网有”喜欢”,腾讯微博有”收听”,所以Google +1来了,来的如此之晚,带着Google Wave和Google Buzz那未完成的使命,毅然决然的闯入了Social Media的行列。

正文:开始添加 Google +1 到网站:[加快载入速度方法]

  1. 访问 Google +1首页:http://www.google.com/webmasters/+1/button/
  2. 配置好信息,打开 Advanced options,此处可以填入网站首页URL,这样的好处是集中 Google +1 的权重分布,和Google PR 一个道理
  3. 将代码中如下段落放到网页需要的布局当中
    <g:plusone size="medium" href="http://zlz.im/"></g:plusone>
  4. 将需加载的JS放在 末尾的 </body>之前

但是你会发现,国内外访问你网站的速度差异巨大,WHY!

因为 GirlFriendWall 呗,虽然上面的JS url没有完全挂掉,但是加载速度真的很慢,于是我们自己做缓存,之前 [网站加速]之优化网站Yslow评分到99 中对Google 的 ga.js 也是如法炮制。

<script src="http://img.zlz.im/js/plusone.js" type="text/javascript">
 {lang: 'zh-CN'}
 </script>

当然你会发现 plusone.js 中还有新的js 加载项,如果够闲,可以试试做二次缓存。

测试一下呗,帮我点点顶部的 +1!

PS:Google 说 +1 不会影响网站排名,LOL~~~你懂的。(Google 自己都不信…….)

版权所有© HzlzH | 本文采用 BY-NC-SA 进行授权
转载需注明 转自: 《为网站添加 Google +1 按钮[加速版]

相关文章

{ Leave a Reply ? }

  1. Ethan United States Google Chrome Windows

    撒花!!!!!!!

  2. 万戈 China Mozilla Firefox Windows

    作为google apps的用户表示很遗憾,暂不支持 :cry:

    • 舒吉塔 China Mozilla Firefox Windows

      @万戈: +10086

      • 万戈 China Mozilla Firefox Windows

        @HzlzH: 我的i@wange.im更帅更给力,哼哼 :-P

  3. 林木木 China Google Chrome Windows

    点了,一直加载……

  4. rusaer China Google Chrome Windows

    点了

  5. 友豪 China Maxthon Windows

    :mrgreen: 看看这个功能啊!

  6. 滑动门 China Google Chrome Windows

    原来如此啊,现在终于知道了。

  7. Louis Han China Mozilla Firefox Windows

    来得好快啊

  8. 奚少 China Internet Explorer Windows

    点过了,不过我想知道+1有什么用呢?

  9. 郎中中 China Google Chrome Windows

    暂时不想用这个~

      • 郎中中 China Google Chrome Windows

        @HzlzH: 什么意思啊?看不懂。。

  10. Maplews China Google Chrome Windows

    纠结的G手动F和谐W。 :arrow:

  11. IM路人 China Maxthon Windows

    点了,没反应~~~~

  12. 苏久久 China Google Chrome Windows

    点了…但这个是向谁推荐信息的.?搜索引擎?

  13. Dianso China Google Chrome Windows

    糟糕…您要有 Google 个人资料才能使用此功能。

    我悲剧啊,点了没成功,看来app用户不行

  14. junv China Google Chrome Windows

    真的很棒,支持了

  15. soping China Mozilla Firefox Windows

    一直在加载js~~~~~~~~

  16. WayJam China Mozilla Firefox Linux

    我竟然找不到+1按钮在哪里?

  17. 卢松松 China Google Chrome Windows

    不错 不错,不过暂不考虑使用

  18. laofan China Google Chrome Windows

    研究研究去

  19. 小雞雞! United States Mozilla Firefox Windows

    就是把G官方的JS檔保存到自己的主機吧?!

  20. Dolphin United States Mozilla Firefox Windows

    。。。。第一次听到GirlFriendWall这种说法,楼主有才~

  21. 成都SEO China Internet Explorer Windows

    等成熟一点才添加,现在影响速度很吓人的!

    • 西 木 China Google Chrome Windows

      @成都SEO: 加也太慢了吧

  22. zwwooooo China Mozilla Windows

    哈,有缓存考虑挂上,google最近的速度,唉

  23. yesureadmin China Google Chrome Windows

    到底拖不拖速度啊

  24. yesureadmin China Google Chrome Windows

    第三条是否永远在跟主页投票?加上这个函数是不是好一些?

  25. MK China Google Chrome Windows

    暂时不打算发这个代码的,普及不够,在中文网站的。

      • MK China Google Chrome Windows

        是啊,不过在国外开始普遍使用,但是效果真的不明显。 :mrgreen: 会不会又一个buzz

  26. ixwebhosting China Internet Explorer Windows

    这个加上后速度会有影响——而且国人使用GG的目前并不多,所以效果个人觉得不会有多好的!还不如加QQ呢!

  27. 第三眼 China Google Chrome Windows

    木有看见顶部的+1按钮呢

  28. 焚云日 China Google Chrome Windows

    不用这玩意,连无觅我都懒得用了。

  29. yish China Google Chrome Windows

    速度还是不太给力。

  30. 设计酷 United States Mozilla Firefox Windows

    功能不错的,速度有点拖后腿。

  31. welpher.yu United States Google Chrome Windows

    谷歌自己都不信

  32. 龙龙Fred China Mozilla Firefox Fedora

    这个功能不错哦~

  33. AlisterTT China Safari iPad

    添加进去不显示,估计是真心速度慢了。

  34. 碎平 China Google Chrome Windows

    其实这个plusone.js不大,只有7点几k,后面加载的cb=gapi.loaded0有140多k

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)

Pingback & Trackback

  1. 增添了Google”+1″按钮 修改了404页面 | 小周博客 United States WordPress Unknow Os - Pingback on 2011/06/16/ 13:06
  2. 为网站添加 Google +1 按钮 United States WordPress Unknow Os - Pingback on 2011/06/19/ 09:19