Stay organized with collections
Save and categorize content based on your preferences.
Tuesday, July 26, 2011
One of the
10 things we hold to be true
here at Google is that fast is better than slow. We keep speed in mind in all things that we do,
and the +1 button is no exception. Since the button's
launch, we have been hard at
work improving its load time. Today, we're proud to announce two updates that will make both the
+1 button and the page loading it, faster.
First, we've begun to roll out out a set of changes that will make the button render up to 3x
faster on your site. No action is required on your part, so just sit back, relax, and watch as
the button loads more quickly than before.
In addition to the improvements made to the button, we're also 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. For those of you who have already implemented the button, you'll
need to update the code to the new async snippet, and then you should see an overall improvement
in your page load time.
To generate the new async snippet, use our
+1 Configuration Tool.
Below, you'll find an example of the code, which should be included below the last tag on your
page for best performance.
<-- Place this tag where you want the +1 button to render ->
<g:plusone></g:plusone>
<!-- Place this tag after the last plusone tag->
<script> (function() {
var po = document.createElement('script'); po.type = 'text/javascript, po.async = true; po src="https://apis.google.com/js/plusone.js',
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
If you haven't already implemented the +1 button on your site, we're excited for your first
experience to be a fast one. This is a great opportunity to allow your users to recommend your
site to their friends, potentially bringing in more qualified traffic from Google search. To
those that already have the button, we hope that you enjoy the improvements in speed. Our team
will continue to work hard to enhance the +1 button experience as we know that "fast is better
than slow" is as true today as it's ever been.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eGoogle has implemented updates to the +1 button, significantly improving its loading speed by up to 3x.\u003c/p\u003e\n"],["\u003cp\u003eA new asynchronous snippet has been introduced, enabling faster loading of web pages by allowing parallel downloading of the +1 button JavaScript.\u003c/p\u003e\n"],["\u003cp\u003eWebsite owners who have already implemented the +1 button need to update their code with the new asynchronous snippet for enhanced performance.\u003c/p\u003e\n"],["\u003cp\u003eUsers are encouraged to add the +1 button to their websites to allow visitors to recommend their content, driving more qualified traffic from Google search.\u003c/p\u003e\n"]]],["Google's +1 button received two speed-enhancing updates. First, the button's rendering speed improved up to 3x automatically. Second, a new asynchronous snippet was introduced, allowing the webpage to load concurrently with the +1 JavaScript. Existing users need to update their code with the new snippet from the +1 Configuration Tool for optimal speed. New users are encouraged to implement the fast-loading +1 button.\n"],null,["# The +1 Button: Now Faster\n\n| It's been a while since we published this blog post. Some of the information may be outdated (for example, some images may be missing, and some links may not work anymore).\n\nTuesday, July 26, 2011\n\n\nOne of the\n[10 things we hold to be true](https://www.google.com/about/corporate/company/tenthings)\nhere at Google is that fast is better than slow. We keep speed in mind in all things that we do,\nand the +1 button is no exception. Since the button's\n[launch](/search/blog/2011/06/add-1-to-help-your-site-stand-out), we have been hard at\nwork improving its load time. Today, we're proud to announce two updates that will make both the\n+1 button and the page loading it, faster.\n\n\nFirst, we've begun to roll out out a set of changes that will make the button render up to 3x\nfaster on your site. No action is required on your part, so just sit back, relax, and watch as\nthe button loads more quickly than before.\n\n\nIn addition to the improvements made to the button, we're also introducing a new asynchronous\nsnippet, allowing you to make the +1 experience even faster. The async snippet allows your web\npage to continue loading while your browser downloads the +1 JavaScript. By loading these elements\nin parallel, we're ensuring the HTTP request to get the +1 button JavaScript doesn't lead to an\nincrease in your page load time. For those of you who have already implemented the button, you'll\nneed to update the code to the new async snippet, and then you should see an overall improvement\nin your page load time.\n\n\nTo generate the new async snippet, use our\n[+1 Configuration Tool](https://www.google.com/webmasters/+1/button/).\nBelow, you'll find an example of the code, which should be included below the last tag on your\npage for best performance. \n\n```\n\u003c-- Place this tag where you want the +1 button to render -\u003e\n\u003cg:plusone\u003e\u003c/g:plusone\u003e\n\u003c!-- Place this tag after the last plusone tag-\u003e\n\u003cscript\u003e (function() {\nvar po = document.createElement('script'); po.type = 'text/javascript, po.async = true; po src=\"https://apis.google.com/js/plusone.js',\nvar s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);\n})();\n\u003c/script\u003e\n```\n\n\nIf you haven't already implemented the +1 button on your site, we're excited for your first\nexperience to be a fast one. This is a great opportunity to allow your users to recommend your\nsite to their friends, potentially bringing in more qualified traffic from Google search. To\nthose that already have the button, we hope that you enjoy the improvements in speed. Our team\nwill continue to work hard to enhance the +1 button experience as we know that \"fast is better\nthan slow\" is as true today as it's ever been.\n\n\nIf you have any questions, please join us in the\n[Webmaster forum](https://support.google.com/webmasters/community/label?lid=1f91cc0e87a8ed93).\nTo receive updates about the +1 button, please subscribe to the\n[Google Publisher Buttons Announce Group](https://groups.google.com/group/google-publisher-buttons/subscribe).\nFor advanced tips and tricks, check our\n[Google Code](https://code.google.com/apis/+1button) site.\n\n\nPosted by\n[David Byttow](https://plus.google.com/104390246098751387487/about),\nSoftware Engineer"]]