Title: Head.WP
Author: kylereicks
Published: <strong>2013 年 4 月 21 日</strong>
Last modified: 2014 年 2 月 18 日

---

搜索插件

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

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

# Head.WP

 作者：[kylereicks](https://profiles.wordpress.org/kylereicks/)

[下载](https://downloads.wordpress.org/plugin/headwp.2.0.3.zip)

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

 [支持](https://wordpress.org/support/plugin/headwp/)

## 描述

Head.js is a script to asynchronously load and manage dependencies of javascript
and CSS assets.

This plugin loads the scripts and styles enqueued in footer with the head.js loader.
It does not include head.js’ feature detection.

Head.js.wp assumes that scripts are loaded via `wp_enqueue_script()` and that any
script enqueued in the `<head>` intends to be loaded before the rest of the page.

## 安装

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

## 常见问题

  Where are the plugin options?

There aren’t any, but the plugin counts on scripts being properly enqueued in the
footer with correctly listed dependencies. [See wp_enqueue_script in the Codex](https://codex.wordpress.org/Function_Reference/wp_enqueue_script).

  Why are my site’s scripts still loading conventionally (i.e. without head.js)?

There are a few reasons why a script might still be loaded conventionally.
 * Head.
WP ignores any scripts that are not added via `wp_enqueue_script()`. * Head.WP only
works with scripts enqueued in the footer, it assumes that any script enqueued in
the `<head>` intends to block the rest of the rest of the page from loading until
it is finished.

  Why are my other scripts not working as expected?

If a script has no dependencies, head.js will execute that script as soon it is 
loaded. To ensure that scripts are executed in the correct order, make sure to list
all required dependencies in `wp_enqueue_script()`.

  Is this plugin on GitHub?

Yes it is. [Head.WP](https://github.com/kylereicks/head.js.wp)

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ kylereicks ](https://profiles.wordpress.org/kylereicks/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 2.0.3

 * Fix reference error when localizing scripts.

#### 2.0.2

 * Fix warning on log-in page.
 * Remove output when no scripts need to be loaded.

#### 2.0.1

 * Hotfix. Fix warning in shortcode class.
 * Add head.min and head.map to the svn repo.

#### 2.0.0

 * A complete rewrite. It really is much nicer now.
 * Update to head.js version 1.0.3

#### 1.0

 * Release 1.0.

## 额外信息

 *  版本 **2.0.3**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.2 或更高版本 **
 *  已测试的最高版本为 **3.7.41**
 *  语言
 * [English (US)](https://wordpress.org/plugins/headwp/)
 * 标签
 * [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/)
 *  [高级视图](https://cn.wordpress.org/plugins/headwp/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ kylereicks ](https://profiles.wordpress.org/kylereicks/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://shakopee.dollarsforscholars.org/)