Title: Asynchronous Javascript
Author: Paris Holley
Published: <strong>2013 年 1 月 18 日</strong>
Last modified: 2013 年 11 月 2 日

---

搜索插件

![](https://ps.w.org/asynchronous-javascript/assets/banner-772x250.jpg?rev=654920)

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

![](https://s.w.org/plugins/geopattern-icon/asynchronous-javascript_e3541a.svg)

# Asynchronous Javascript

 作者：[Paris Holley](https://profiles.wordpress.org/parisholley/)

[下载](https://downloads.wordpress.org/plugin/asynchronous-javascript.zip)

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

 [支持](https://wordpress.org/support/plugin/asynchronous-javascript/)

## 描述

This plugin is meant to be a drop-in to your wordpress installation with no additional
configuration. The goals/features of this plugin are:

 * Load javascript files in an asynchronous manner to improve time to DomReady/OnLoad
 * Use existing wordpress APIs for backwards compatability and prevent coupling 
   to this plugin
 * Leverage dependency model wordpress provides for assets to improve loading performance

Please submit bugs or contributions to the github location and not here on wordpress’
system:

https://github.com/parisholley/wordpress-asynchronous-javascript/

SEO: async js, asynchronous js, async javascript

### Incompatibility

This plugin will not work out the box with the following plugins (unless they are
modified to support asynchronous loading).

 * Jetpack by WordPress.com (social plugin)
 * WP Most Popular

## 安装

 1. Upload `asynchronous-javascript` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  Is there any potential problems with other plugins?

As long as those plugins are using the built-in wordpress script queuing and not
attempting to output scripts manually (such as invoking wp_print_scripts()), you
should have no problems. If you find plugins that don’t work properly (or without
modifications), let me know and I will maintain an incompatibility list.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Paris Holley ](https://profiles.wordpress.org/parisholley/)

[帮助将「Asynchronous Javascript」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/asynchronous-javascript)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.5

 * Ability to mark headjs as always in header (thanks DeanStr)

#### 1.3.4

 * Fixed notices
 * Added filter to alter src location

#### 1.3.3

 * Fixed bug introduced in last version

#### 1.3.2

 * Ability to specify your own head.js file (thanks to DeanStr)

#### 1.3.1

 * Removed PHP warning

#### 1.3.0

 * Ability to exclude files by filename or queue id from being loaded asynchronously

#### 1.2.1

 * Fixed static reference for PHP < 5.2.3

#### 1.2.0

 * WordPress already orders dependencies, updated as head.js doesn’t support multiple
   dependency resolution

#### 1.1.2

 * Starting incompatibility list

#### 1.1.1

 * Updated readme and versioning

#### 1.1

 * Removed `wp_enqueue_async_script()`, should be able to use normal wordpress method`
   wp_enqueue_script()`
 * Updated normal enqueue processing to use dependencies, will need to improve upon
   this in future.

#### 1.0

 * Initial release, seems to work. 🙂

## 额外信息

 *  版本 **1.3.5**
 *  最后更新：**12 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/asynchronous-javascript/)
 * 标签
 * [async](https://cn.wordpress.org/plugins/tags/async/)[asynchronous](https://cn.wordpress.org/plugins/tags/asynchronous/)
   [headjs](https://cn.wordpress.org/plugins/tags/headjs/)[javascript](https://cn.wordpress.org/plugins/tags/javascript/)
   [JS](https://cn.wordpress.org/plugins/tags/js/)
 *  [高级视图](https://cn.wordpress.org/plugins/asynchronous-javascript/advanced/)

## 评级

 3.7 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/asynchronous-javascript/reviews/#new-post)

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

## 贡献者

 *   [ Paris Holley ](https://profiles.wordpress.org/parisholley/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/asynchronous-javascript/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paris%40holleywoodproductions%2ecom&lc=US&item_name=Paris%20Holley&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest)