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

---

Sök tillägg

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

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

# WP HeadJS

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

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

 * [Detaljer](https://sv.wordpress.org/plugins/wp-headjs/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/wp-headjs/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/wp-headjs/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/wp-headjs/#developers)

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

## Beskrivning

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/

## Installation

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

## Recensioner

Detta tillägg har inga recensioner.

## Bidragsgivare och utvecklare

”WP HeadJS” är programvara med öppen källkod. Följande personer har bidragit till
detta tillägg.

Bidragande personer

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

[Översätt ”WP HeadJS” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/wp-headjs)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/wp-headjs/), kika 
på [SVN-filförvaret](https://plugins.svn.wordpress.org/wp-headjs/) eller prenumerera
på [utvecklarloggen](https://plugins.trac.wordpress.org/log/wp-headjs/) via [RSS](https://plugins.trac.wordpress.org/log/wp-headjs/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.1**
 *  Senast uppdaterat **14 år sedan**
 *  Aktiva installationer **10+**
 *  WordPress-version ** 2.9.1 eller senare **
 *  Testat upp till **3.2.1**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/wp-headjs/)
 * Etiketter
 * [headjs](https://sv.wordpress.org/plugins/tags/headjs/)[javascript](https://sv.wordpress.org/plugins/tags/javascript/)
   [wp_enqueue_script](https://sv.wordpress.org/plugins/tags/wp_enqueue_script/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/wp-headjs/advanced/)

## Betyg

Än så länge har inga recensioner skickats in.

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

[Se alla recensioner](https://wordpress.org/support/plugin/wp-headjs/reviews/)

## Bidragande personer

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

## Support

Har du något att säga? Behöver du hjälp?

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

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](http://www.brianzeligson.com)