r21851 - htdocs/trunk/externals - Try to get the google button back and use a asynchronous.

Cristian Marchi cmarchi at code.gnucash.org
Fri Jan 13 10:51:10 EST 2012


Author: cmarchi
Date: 2012-01-13 10:51:10 -0500 (Fri, 13 Jan 2012)
New Revision: 21851
Trac: http://svn.gnucash.org/trac/changeset/21851

Modified:
   htdocs/trunk/externals/header.phtml
Log:
Try to get the google button back and use a asynchronous.

Modified: htdocs/trunk/externals/header.phtml
===================================================================
--- htdocs/trunk/externals/header.phtml	2012-01-13 06:51:47 UTC (rev 21850)
+++ htdocs/trunk/externals/header.phtml	2012-01-13 15:51:10 UTC (rev 21851)
@@ -40,7 +40,13 @@
 
 <title><?= T_($title); ?> | GnuCash</title>
 <!--script for Google+1 button-->
-<script type="text/javascript" src="https://apis.google.com/js/plusone.js">      {lang:'en', parsetags:'explicit'}   </script>
+<script type="text/javascript">
+  (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>
 </head>
 
 <body>



More information about the gnucash-changes mailing list