Better Social Buttons
Combine and use best practices in implementing social network buttons (Facebook, Twitter, Google+, Linkedin) like async loading, on-demand loading, etc.
Sources
- http://www.zurb.com/article/883/small-painful-buttons-why-social-media-bu
- http://www.phpied.com/social-button-bffs/
- https://github.com/filamentgroup/SocialCount
- http://www.phpied.com/speed-geeks-guide-to-facebook-buttons/
Main ideas
- Work without JS
- Load third-party script "on-demand" (by clicking on the button)
- Javascript API. Ex: bsb.load('twitter") ?
- No extra library required (jQuery or other)
- Heavy use of HTML5 data attribute (See phpied.com article)