Title: WP HeadJS
Author: Brian Zeligson
Published: <strong>17. Juna 2012.</strong>
Last modified: 17. Juna 2012.

---

Pretražite dodatke

Ovaj dodatak **nije testiran s najnovija 3 glavna izdanja WordPress-a**. Možda se
više ne održava ili se ne podržava i može imati problema sa kompatibilnošću kada
se koristi sa novijim verzijama WordPress-a.

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

# WP HeadJS

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

[Skini](https://downloads.wordpress.org/plugin/wp-headjs.zip)

 * [Detalji](https://bs.wordpress.org/plugins/wp-headjs/#description)
 * [Recenzije](https://bs.wordpress.org/plugins/wp-headjs/#reviews)
 *  [Instalacija](https://bs.wordpress.org/plugins/wp-headjs/#installation)
 * [Razvoj](https://bs.wordpress.org/plugins/wp-headjs/#developers)

 [Podrška](https://wordpress.org/support/plugin/wp-headjs/)

## Opis

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/

## Instalacija

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

## Recenzije

Nema recenzija za ovaj dodatak.

## Saradnici i programeri

“WP HeadJS” is open source software. The following people have contributed to this
plugin.

Doprinositelji

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

[Prevedi “WP HeadJS” na vaš jezik.](https://translate.wordpress.org/projects/wp-plugins/wp-headjs)

### Zainteresirani za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/wp-headjs/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/wp-headjs/)ili se pretplatite 
na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/wp-headjs/) od [RSS](https://plugins.trac.wordpress.org/log/wp-headjs/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.1**
 *  Last updated **prije 14 godina**
 *  Active installations **10+**
 *  WordPress version ** 2.9.1 ili viša **
 *  Tested up to **3.2.1**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-headjs/)
 * Tags
 * [headjs](https://bs.wordpress.org/plugins/tags/headjs/)[javascript](https://bs.wordpress.org/plugins/tags/javascript/)
   [wp_enqueue_script](https://bs.wordpress.org/plugins/tags/wp_enqueue_script/)
 *  [Napredni pogled](https://bs.wordpress.org/plugins/wp-headjs/advanced/)

## Ocjene

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/wp-headjs/reviews/)

## Doprinositelji

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

## Podrška

Imate nešto za reći? Trebate pomoć?

 [Pogledaj forum podrške](https://wordpress.org/support/plugin/wp-headjs/)

## Pokloni

Da li bi ste željeli da podržite napredovanje ovog proširenja?

 [ Pokloni ovom proširenju ](http://www.brianzeligson.com)