📜 ⬆️ ⬇️

+1 button has become faster



Google, guided by the straightforward principle of “better quickly than slowly,” released an update that increases the rendering speed of the +1 button 3 times. Users do not need anything - just note that the button loads faster than before.

In addition, Google has developed a new asynchronous snippet that allows you to use +1 even faster. The asynchronous snippet allows the web page to continue loading while the browser loads the +1 JavaScript buttons. When these elements are simultaneously loaded, an HTTP request to get JavaScript does not increase the page loading time. If you have already implemented a button, then you need to update the code to see a general improvement in page load time.

To generate a new asynchronous snippet, use the +1 configuration tool . Below is a sample of the code you need to insert after the last <g: plusone> tag on the page for better performance.
')


If you have not put the +1 button on your site, then think about it right now - after all, according to some sources , it is even more popular than the button from Twitter.

[ via Official Google Webmaster Central Blog]

Source: https://habr.com/ru/post/125075/


All Articles