Skip to content

Instantly share code, notes, and snippets.

@paulgosnell
Created October 11, 2011 10:06
Show Gist options
  • Save paulgosnell/1277748 to your computer and use it in GitHub Desktop.
Save paulgosnell/1277748 to your computer and use it in GitHub Desktop.
Load Google Plus asynchronously
// load google plus
(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);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment