3 points · by ldawson · 15y ago · 1 comment
The benefits of the plugin are:
- The button is animated (the same animation can be seen on any Google search page and currently not available)
- Privacy! A user has to opt in (via hover) to enable the button
- The minified plugin is small (~2kb) and contains the default assets encoded in base64 to reduce http requests. This means that when a user visits a page with multiple +1 buttons on, all buttons will load immedieaty and removes the noticable lag / flicker of assets being loaded that is currently seen with the code from Google.
Check out the source on Github: https://github.com/laurencedawson/jQuery.googlePlusOne.js
A live demo can be viewed at: http://laurencedawson.github.com/jQuery.googlePlusOne.js
Thanks!
The one thing I noticed with it is that it seems to 'stall' between when the animation occurs and the full color image is swapped in.
For a first-time load, this wouldn't be surprising, but it seems to do it even after I've already +1d something else on the page, and seen the animation, which should be cached already.