Async Social Sharing
Simple social sharing plugin that loads the third-party scripts asynchronously and after the page loads to improve site performance. The plugin provides settings to load any of the following sharing widgets: Twitter Facebook Google+ Linkedin Hacker News Available display options include ability to d
Simple social sharing plugin that loads the third-party scripts asynchronously and after the page loads to improve site performance.
The plugin provides settings to load any of the following sharing widgets:
- Google+
- Hacker News
Available display options include ability to display the sharing widgets on above or below content on pages, specific custom post types or blog and archive pages.
Why is Asynchronous script loading better? Asynchronous loading allows multiple files to load parallel to each other. Instead of having to wait for Twitter to respond with their script, the browser moves on and starts fetching the next request.
Dependencies
- WordPress 3.5+
- Content worth sharing
Contributors Welcome
- Submit a pull request on Github
Upcoming Versions Wishlist
- Allow re-arranging of social widgets
Credits
- Inspired by Stoyan Stefanov’s blog post “Social Button BFFs”
- HackerNews button code by Ilya Grigorik
Author
- Rachel Baker
1.8.1
- Fixed bug where plugin would cause a fatal error for PHP 5.2 and under by changing class initialization process.
- Added minor style fix for Facebook sharing widget alignment.
1.8.0
- Added async_social_display() function to be used as a template tag to output the social sharing widgets anywhere theme developers desire within the loop.