Title: WP-JSHRINK
Author: vic-m
Published: <strong>December 29, 2014</strong>
Last modified: January 5, 2015

---

Search plugins

![](https://ps.w.org/wp-jshrink/assets/banner-772x250.png?rev=1056509)

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/wp-jshrink_2f2f2f.svg)

# WP-JSHRINK

 By [vic-m](https://profiles.wordpress.org/vic-trigger/)

[Download](https://downloads.wordpress.org/plugin/wp-jshrink.zip)

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

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

## Description

JShrink minifier implemented for WordPress. Combines footer scripts equeued by wp_enqueue_script
into a single minified js file. Check the FAQ section for more info about the plugin.

Important note: only footer scripts which are equeued by wp_enqueue_script with 
the fifth parameter set to ‘true’ are minified by this plugin.

JShrink is a php class that minifies javascript so that it can be delivered to the
client quicker. Check https://github.com/tedious/JShrink for more info.

Works for sure with: WordPress 4.0+, PHP 5.4+.

## Screenshots

 * [[
 * Before & after, number of requests significantly reduced.

## Installation

Just install and activate the plugin, and it will seamlessly minify and combine 
javascript in the footer. No other actions required from your side.

## FAQ

#### Why would I use it?

It will help you to reduce number of scripts on your page and hence reduce number
of http requests to your server.

#### When does it make sense?

If you have 3 js files enqueued in your footer – you definitely don’t need this 
plugin. If you there are like 20 of them – then probably you do.

#### What gets minified?

Scripts from the current theme, wp-includes & plugins.

#### Why only footer scripts?

To encourage people put their javascript in the footer.

#### Does it minify css?

No. Initially it was a small plugin for personal usage in conjunction with wp-less.
Consider using LESS or SCSS to put your css together in a single file or use any
other css minifier.

#### Does it uglify my javascript?

No. Only minifies and combines into a single file.

#### Grunt, Gulp, xxx and yyy already do this

This is yet another tool which you may either use or not use, it’s up to you 🙂

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ vic-m ](https://profiles.wordpress.org/vic-trigger/)

[Translate “WP-JSHRINK” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-jshrink)

### Interested in development?

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

## Changelog

#### Version 1.1.2

 * Stable tag

#### Version 1.1.1

 * Unused code like tests removed from library to reduce package size

#### Version 1.1

 * Hardcoded paths removed

#### Version 1.0

 * Very basic API
 * Plugin goes public

## Meta

 *  Version **1.1.3**
 *  Last updated **11 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **4.1.42**
 * Tags
 * [javascript](https://wordpress.org/plugins/tags/javascript/)[minify](https://wordpress.org/plugins/tags/minify/)
 *  [Advanced View](https://wordpress.org/plugins/wp-jshrink/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

 *   [ vic-m ](https://profiles.wordpress.org/vic-trigger/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-jshrink/)