An unofficial blog that watches Google's attempts to move your operating system online since 2005. Not affiliated with Google.

Send your tips to gostips@gmail.com.

July 26, 2011

Updated Code for Google +1 Buttons

As reported last month, the code for Google +1 buttons could be improved so that the buttons load faster and stop blocking other resources. Google updated the code and recommends publishers to generate a new code.

"We're introducing a new asynchronous snippet, allowing you to make the +1 experience even faster. The async snippet allows your web page to continue loading while your browser downloads the +1 JavaScript. By loading these elements in parallel, we're ensuring the HTTP request to get the +1 button JavaScript doesn't lead to an increase in your page load time," explains Google.


Google also optimized the existing code so that the button renders up to 3 times faster. Even if you don't update the code, you'll still benefit from these changes.

The code generator is easy to use and I've noticed that a lot of sites added a +1 button next to Facebook's "Like" button. It's unfortunate that Google didn't optimize the code when it was released.

13 comments:

  1. I like Google + the most. If +1 works, it will not only improve search quality, but also make ads more engaging. This may potentially improve Google’s ads, and eventually may turn into a core social product that can expand in new directions




    "

    ReplyDelete
  2. I tried to add the script many times in the blog's sidebar but it doesn't show up.

    ReplyDelete
  3. I don't think we again need to update Google Plus button code we are using in our blog, don't we?

    ReplyDelete
  4. I get it some new information through this blog. Its really helpful to improve my knowledge.

    Register Domain In India

    ReplyDelete
  5. Here's a site explaining how to create HTML valid code:
    http://www.gabsoftware.com/tips/how-to-produce-valid-google-1-buttons/

    ReplyDelete
  6. I don't know how to apply it and why do it ?

    ReplyDelete
  7. Good information.. i'll try it, Google +1 new code :D

    ReplyDelete
  8. it's, at least, funny that you cannot use it in google sites.

    ReplyDelete
  9. Way to go. Thanks for the google plus button

    ReplyDelete
  10. I used the Google+1 button on one of my blog, but on my other blogspot blog it doesn't work. Sometimes it shows up, sometimes not. What do you think is the problem? is it because of my theme? here's my other blog: http://www.exoticphilippines.info/

    ReplyDelete
  11. Got the same problem as above, Google+1 button shows up at random, sometimes it shows and sometimes it doesn't. Do you have a fix for this?

    ReplyDelete