Title: HeadJS Loader
Author: durin
Published: <strong>25 Sginer 2011</strong>
Last modified: 25 Sginer 2013

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# HeadJS Loader

 By [durin](https://profiles.wordpress.org/durin/)

[Download](https://downloads.wordpress.org/plugin/headjs-loader.zip)

 * [Details](https://lmo.wordpress.org/plugins/headjs-loader/#description)
 * [Reviews](https://lmo.wordpress.org/plugins/headjs-loader/#reviews)
 *  [Installation](https://lmo.wordpress.org/plugins/headjs-loader/#installation)
 * [Development](https://lmo.wordpress.org/plugins/headjs-loader/#developers)

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

## Description

This plugin reformats your page to utilize [Head JS](http://headjs.com) in your 
WordPress site.

**Caution: this plugin can cause major issues with the javascript on your site if
not implemented properly. Please be sure to test on a development server first**

It strips out all your old javascript declarations and puts them into head.js calls
so that they are loaded in parallel (see the Head JS website for more details).

Optionally you can wrap all your inline javascript with head.ready calls.

For example, this:

    ```
    <script type='text/javascript' src='http://yoururl.com/wp-includes/js/prototype.js?ver=1.6.1'></script> 
    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js?ver=3.0.4'></script> 
    <script type='text/javascript' src='http://yoururl.com/wp-includes/js/scriptaculous/wp-scriptaculous.js?ver=1.8.3'></script> 
    <script type='text/javascript' src='http://yoururl.com/wp-includes/js/scriptaculous/builder.js?ver=1.8.3'></script> 
    <script type='text/javascript' src='http://yoururl.com/wp-includes/js/scriptaculous/effects.js?ver=1.8.3'></script> 
    <script type='text/javascript' src='http://yoururl.com/wp-includes/js/scriptaculous/dragdrop.js?ver=1.8.3'></script> 
    <script type='text/javascript' src='http://yoururl.com/wp-includes/js/scriptaculous/slider.js?ver=1.8.3'></script> 
    <script type='text/javascript' src='http://yoururl.com/wp-includes/js/scriptaculous/controls.js?ver=1.8.3'></script> 
    ```

Becomes:

    ```
    <script type="text/javascript" src="http://yoururl.com/wp-content/plugins/headjs-loader/js/head.min.js"></script> 
    <script> 
    head.js("http://yoururl.com/wp-includes/js/prototype.js?ver=1.6.1",
        "http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js?ver=3.0.4",
        "http://yoururl.com/wp-includes/js/scriptaculous/wp-scriptaculous.js?ver=1.8.3",
        "http://yoururl.com/wp-includes/js/scriptaculous/builder.js?ver=1.8.3",
        "http://yoururl.com/wp-includes/js/scriptaculous/effects.js?ver=1.8.3",
        "http://yoururl.com/wp-includes/js/scriptaculous/dragdrop.js?ver=1.8.3",
        "http://yoururl.com/wp-includes/js/scriptaculous/slider.js?ver=1.8.3",
        "http://yoururl.com/wp-includes/js/scriptaculous/controls.js?ver=1.8.3"
    );
    </script> 
    ```

Feel free to contribue to the project on [GitHub](http://github.com/ChuckMac/wp-headjs-loader)!

## Installation

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

## FAQ

  No questions

No answers.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

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

[Translate “HeadJS Loader” into your language.](https://translate.wordpress.org/projects/wp-plugins/headjs-loader)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/headjs-loader/), check
out the [SVN repository](https://plugins.svn.wordpress.org/headjs-loader/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/headjs-loader/) 
by [RSS](https://plugins.trac.wordpress.org/log/headjs-loader/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1.1

 * Fixed bug that caused apache erorr messages if no javascript was declared.

#### 0.1

 * Initial release.

## Meta

 *  Version **0.2**
 *  Last updated **13 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/headjs-loader/)
 * Tags
 * [css](https://lmo.wordpress.org/plugins/tags/css/)[javascript](https://lmo.wordpress.org/plugins/tags/javascript/)
   [JS](https://lmo.wordpress.org/plugins/tags/js/)
 *  [Advanced View](https://lmo.wordpress.org/plugins/headjs-loader/advanced/)

## Ratings

 3 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/headjs-loader/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/headjs-loader/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/headjs-loader/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/headjs-loader/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/headjs-loader/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/headjs-loader/reviews/#new-post)

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

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/headjs-loader/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://chuckmac.info/)