Title: WP HeadJS
Author: Brian Zeligson
Published: <strong>17 Tháng 6, 2012</strong>
Last modified: 17 Tháng 6, 2012

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# WP HeadJS

 Bởi [Brian Zeligson](https://profiles.wordpress.org/beezeee/)

[Tải về](https://downloads.wordpress.org/plugin/wp-headjs.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/wp-headjs/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/wp-headjs/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/wp-headjs/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/wp-headjs/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/wp-headjs/)

## Mô tả

This plugin uses the wp_print_scripts action hook, as opposed to output buffering
and regex used by alternative implementations.

The downside of this method is that only scripts loaded via wp_enqueue_script will
be affected by the plugin, the upside is better
 performance by avoiding output 
buffering on every page load.

The plugin will preserve any localizations added via wp_localize_script, and uses
the first parameter passed to wp_enqueue_script
 as the label for the script in 
the head.js call. For example,

    ```
    wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');
    ```

would show up as

    ```
    head.js({"jquery": "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"});
    ```

This allows you to run callbacks when specific scripts are ready, such as

    ```
    head.ready('jquery', function() {
        //do something when jquery is loaded
    });
    ```

For more on HeadJS usage, see http://headjs.com/

## Cài đặt

The easiest way is via Plugins->Add New from the left sidebar of your WP Admin, 
just search for headjs.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“WP HeadJS” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Brian Zeligson ](https://profiles.wordpress.org/beezeee/)

[Dịch “WP HeadJS” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/wp-headjs)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/wp-headjs/), check out [SVN repository](https://plugins.svn.wordpress.org/wp-headjs/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/wp-headjs/)
qua [RSS](https://plugins.trac.wordpress.org/log/wp-headjs/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Phiên bản **0.1**
 *  Cập nhật lần cuối **14 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 2.9.1 hoặc cao hơn **
 *  Đã kiểm tra lên đến **3.2.1**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/wp-headjs/)
 * Thẻ
 * [headjs](https://vi.wordpress.org/plugins/tags/headjs/)[javascript](https://vi.wordpress.org/plugins/tags/javascript/)
   [wp_enqueue_script](https://vi.wordpress.org/plugins/tags/wp_enqueue_script/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/wp-headjs/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/wp-headjs/reviews/)

## Những người đóng góp

 *   [ Brian Zeligson ](https://profiles.wordpress.org/beezeee/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/wp-headjs/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](http://www.brianzeligson.com)