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

---

Søk gjennom innstikk

Dette innstikket **er ikkje testa med dei tre siste utgåvene av WordPress**. Det
kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar
av WordPress.

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

# WP HeadJS

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

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

 * [Detaljar](https://nn.wordpress.org/plugins/wp-headjs/#description)
 * [Omtalar](https://nn.wordpress.org/plugins/wp-headjs/#reviews)
 *  [Installasjon](https://nn.wordpress.org/plugins/wp-headjs/#installation)
 * [Utvikling](https://nn.wordpress.org/plugins/wp-headjs/#developers)

 [Hjelp](https://wordpress.org/support/plugin/wp-headjs/)

## Skildring

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/

## Installasjon

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

## Omtalar

There are no reviews for this plugin.

## Bidragsytarar og utviklarar

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

Contributors

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

[Omset “WP HeadJS” til ditt eige språk.](https://translate.wordpress.org/projects/wp-plugins/wp-headjs)

### Interested in development?

[Les kjeldekoden](https://plugins.trac.wordpress.org/browser/wp-headjs/), sjekk 
[SVN-lageret](https://plugins.svn.wordpress.org/wp-headjs/) eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/wp-headjs/)
med [RSS](https://plugins.trac.wordpress.org/log/wp-headjs/?limit=100&mode=stop_on_copy&format=rss).

## Om

 *  Version **0.1**
 *  Last updated **14 år sidan**
 *  Active installations **10+**
 *  WordPress version ** 2.9.1 eller nyare **
 *  Tested up to **3.2.1**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-headjs/)
 * Tags
 * [headjs](https://nn.wordpress.org/plugins/tags/headjs/)[javascript](https://nn.wordpress.org/plugins/tags/javascript/)
   [wp_enqueue_script](https://nn.wordpress.org/plugins/tags/wp_enqueue_script/)
 *  [Avansert vising](https://nn.wordpress.org/plugins/wp-headjs/advanced/)

## Vurderingar

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/)

## Contributors

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

## Hjelp

Har du noko å seia? Treng du hjelp?

 [Sjå hjelpeforumet](https://wordpress.org/support/plugin/wp-headjs/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.brianzeligson.com)