Title: Async Social Sharing
Author: Rachel Baker
Published: <strong>2012 年 5 月 1 日</strong>
Last modified: 2014 年 6 月 25 日

---

搜索插件

![](https://ps.w.org/async-social-sharing/assets/banner-772x250.jpg?rev=591487)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/async-social-sharing_ffffff.svg)

# Async Social Sharing

 作者：[Rachel Baker](https://profiles.wordpress.org/rachelbaker/)

[下载](https://downloads.wordpress.org/plugin/async-social-sharing.zip)

 * [详情](https://cn.wordpress.org/plugins/async-social-sharing/#description)
 * [评价](https://cn.wordpress.org/plugins/async-social-sharing/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/async-social-sharing/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/async-social-sharing/#developers)

 [支持](https://wordpress.org/support/plugin/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 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](https://github.com/rachelbaker/Async-Social-Sharing)

Upcoming Versions Wishlist

 * Allow re-arranging of social widgets

Credits

 * Inspired by Stoyan Stefanov’s blog post [“Social Button BFFs”](http://www.phpied.com/social-button-bffs/)
 * HackerNews button code by [Ilya Grigorik](https://github.com/igrigorik/hackernews-button)

Author

 * [Rachel Baker](http://rachelbaker.me)

### 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.
 * Added option to allow site administrators to enter their Facebook Application
   
   ID.
 * Added option allowing site administrators to choose if the social sharing
    widgets
   should be output before or after the content. props @dustyf
 * Changed settings screen to use WordPress default admin styles to fix checkbox
   
   display in WordPress 3.8+.
 * Removed bloated admin stylesheet.
 * Minor refactoring of plugin instance loading.
 * Minor code formatting changes.

#### 1.7.1

 * Fixed bug where “headers already sent” message was displayed upon plugin
    activation
   due to blank line at top of main plugin file.
 * Enabled automatic plugin updates for WordPress 3.7 users.

#### 1.7.0

 * Added option to display or hide sharing widgets from posts.
 * Restructured file organization.
 * Tested compatibility with 3.7

#### 1.6.2

 * Fixed bug where previous plugin users could not disable the css without
    removing
   and then re-adding the plugin.
 * Updated compatibility to support 3.5

#### 1.6.1

 * Fixed bug where widgets were not displaying on pages if option was specified.
 * Fixed bug where CSS styles for previous installations was still loading,
    even
   though the option to disable was selected.
 * Expanded post-type multi-selection box area on plugin options page.
 * Added instructions for selecting multiple post types from plugin options page.
 * Tested with WordPress 3.5 RC2

#### 1.6

 * Added option to prevent default CSS stylesheet from loading.
 * Fixed bug where PHP Exception was thrown if post types array was empty.
 * Tested with WordPress 3.5 Beta 3

#### 1.5.1

Fixed bug that would cause content in RSS feeds to not display.
 Fixed bug where
PHP Exception was thrown on pages if the display options were not set.

#### 1.5.0

 * Added ability to display social widgets on pages.
 * Added ability to select which custom post types will display the social
    widgets.
 * Reworked `async-share.js` file. Now only the external social scripts that are
   
   selected to be displayed will be loaded.
 * Improved display styles for social widgets.

#### 1.2.0

 * Combined function for plugin’s script and style loading.
 * Fixed bug that was generating a PHP error when no options were set.
 * Tested with WordPress 3.4.1

#### 1.1.0

 * Added Display Options to plugin to allow sharing widgets to be displayed on
    
   blog and archive pages.
 * Fixed bug with Facebook `fb-root` div not being detected before script loaded.
 * Updated license to GPLv3

#### 1.0.1

 * Added lazy loading to async-share.js
 * Fixed issue with plugin settings link

#### 1.0

 * Initial release

## 屏幕截图

[⌊Social Sharing widgets are loaded under posts⌉⌊Social Sharing widgets are loaded
under posts⌉[

Social Sharing widgets are loaded under posts

[⌊Plugin Options page allows you to specify the social sharing widgets to load
and
where to display them.⌉⌊Plugin Options page allows you to specify the social sharing
widgets to load
and where to display them.⌉[

Plugin Options page allows you to specify the social sharing widgets to load and
where to display them.

[⌊Scripts now load in asynchronous fashion after the page load completes⌉⌊Scripts
now load in asynchronous fashion after the page load completes⌉[

Scripts now load in asynchronous fashion after the page load completes

## 安装

 1. Upload Async Social Sharing to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Follow the ‘Settings’ link to select which social sharing widgets to display on
    your site.
 4. Write good content.

## 评价

![](https://secure.gravatar.com/avatar/17b255a9521d4444068a19a20e9acdbee0bd0c7f44177abe2631e1279c908d57?
s=60&d=retro&r=g)

### 󠀁[Bom plugin](https://wordpress.org/support/topic/bom-plugin-4/)󠁿

 [defendaseudinheiro](https://profiles.wordpress.org/defendaseudinheiro/) 2017 年
1 月 18 日

Bom plugin, mas de vez em quando dá umas travadas para carregar os botões de compartilhamento.

 [ 阅读所有12条评价 ](https://wordpress.org/support/plugin/async-social-sharing/reviews/)

## 贡献者及开发者

「Async Social Sharing」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Rachel Baker ](https://profiles.wordpress.org/rachelbaker/)

[帮助将「Async Social Sharing」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/async-social-sharing)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/async-social-sharing/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/async-social-sharing/)，或通过[RSS](https://plugins.trac.wordpress.org/log/async-social-sharing/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/async-social-sharing/)。

## 额外信息

 *  版本 **1.8.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **200+**
 *  语言
 * [English (US)](https://wordpress.org/plugins/async-social-sharing/)
 * 标签
 * [facebook](https://cn.wordpress.org/plugins/tags/facebook/)[sharing](https://cn.wordpress.org/plugins/tags/sharing/)
   [social](https://cn.wordpress.org/plugins/tags/social/)[twitter](https://cn.wordpress.org/plugins/tags/twitter/)
 *  [高级视图](https://cn.wordpress.org/plugins/async-social-sharing/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/async-social-sharing/reviews/?filter=5)
 *  [  4 条 4 星评价     ](https://wordpress.org/support/plugin/async-social-sharing/reviews/?filter=4)
 *  [  2 条 3 星评价     ](https://wordpress.org/support/plugin/async-social-sharing/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/async-social-sharing/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/async-social-sharing/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/async-social-sharing/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/async-social-sharing/reviews/)

## 贡献者

 *   [ Rachel Baker ](https://profiles.wordpress.org/rachelbaker/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/async-social-sharing/)