Title: WP Scripts &amp; Styles Optimizer
Author: Hendrik Lersch
Published: <strong>2016-07-06</strong>
Last modified: 2017-10-10

---

Search plugins

![](https://ps.w.org/wp-script-optimizer/assets/banner-772x250.jpg?rev=1491267)

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://ps.w.org/wp-script-optimizer/assets/icon-128x128.png?rev=1450859)

# WP Scripts & Styles Optimizer

 By [Hendrik Lersch](https://profiles.wordpress.org/riddler84/)

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

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

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

## Description

Optimization of included JavaScript- and CSS-files can be a very important thing,
if you want a faster site. Many WordPress plugins comes with multiple third-party
and/or own JavaScript-files that are then often be included on every page of your
site. In worst cases you have more than one of the same file included on your site.
That slows down your site!

But also “Render blocking” can easily slow down a website. Every external JavaScript-
or CSS-file, that is included in the head of your site, blocks the site from rendering,
until all files are completely processed. It’s a common practice to move all these
Scripts and Styles (except critical CSS) to the footer of your site, so the rendering
is no longer blocked and your website loads faster.

This is where WP Script Optimizer helps you! It makes it possible to control the
output of every registered JavaScript or CSS-file. You can easily create rules for
it or deactivate files completely. You can also move files to the footer of your
site or vice versa.

Check out the following lists for all currently avaiable and planned features. If
you like this plugin, please upvote and comment. That would be really helpful.

**What you can currently do with WP Script Optimizer**

 * Get an overview of all frontend JavaScript and CSS files, that are included on
   your site (divided in categories)
 * Control scripts and styles for as many single pages as you want or simply globally
 * Change the positioning (Header/Footer) of specific JavaScripts / CSS or all at
   once
 * Deactivate specific Javascripts or CSS-files completely, if not needed
 * Easily create logical rules to control under which conditions a file is included
   or not (by use of wordpress’s conditional tags)

**What you can do in future with WP Script Optimizer (planned, but not currently
implemented)**

 * Minify and/or encrypt JavaScript- and CSS-files
 * Include your own JavaScript/CSS files or JavaScript/CSS inline code, without 
   do it manually through functions.php
 * Add extra code to any registered JavaScript or CSS-file
 * Concatenate two or more (or all) files of one type (JS or CSS) to speed up loading
   times
 * Better overview of dependents and its dependencys
 * … feel free to make suggestions 🙂

**IMPORTANT – Please read:**

This plugin can not decide if a file is needed or not needed in a specific situation.
Your settings have the potential to break features and functions of your site. If
that is the case, you can easily change or delete your settings via the admin panel,
so everything will be like it was before.

tl;dr: you have to know what you’re doing 😉

**If You had any problems with this plugin, please contact me, so i could fix it.
Please don’t write a negative review without gave me the chance to correct any issues.
Thanks.**

## Screenshots

 * [[
 * Overview of global scripts and styles.
 * [[
 * Overview of single page scripts and styles.
 * [[
 * Avaiable Options for each file.
 * [[
 * Set Conditions for any file.
 * [[
 * Get scripts & styles for a single page.
 * [[
 * Admin notices keeps you informed of what happened.

## Installation

 1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Move onto the ‘WP Script Optimizer’ page in admin panel and click on ‘Update lists’
    in the upper right corner.
 4. Thats it! Now you can start customize your scripts and styles.

## FAQ

Coming soon…

  Installation Instructions

 1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Move onto the ‘WP Script Optimizer’ page in admin panel and click on ‘Update lists’
    in the upper right corner.
 4. Thats it! Now you can start customize your scripts and styles.

## Reviews

![](https://secure.gravatar.com/avatar/b2f47225db22645deddd0d75ec05764f6fd145a767898a06304b9b62b63823a2?
s=60&d=retro&r=g)

### 󠀁[Amazing! Thank you!](https://wordpress.org/support/topic/amazing-thank-you-8/)󠁿

 [brandoncordoba](https://profiles.wordpress.org/brandoncordoba/) 2019-02-28

This plugin is exactly what I needed to combat “standard practice” aka “i don’t 
care about user experience” coding. How can I donate to you or give you $ for helping
me out so much?

![](https://secure.gravatar.com/avatar/fec6978c87decb81339a8efce8cab2f8f9c51835de676f041630252625d0b875?
s=60&d=retro&r=g)

### 󠀁[So far it’s great](https://wordpress.org/support/topic/so-far-its-great-2/)󠁿

 [vidordesigns](https://profiles.wordpress.org/vidordesigns/) 2019-02-11

After the Gutenberg update, My Enfold theme and LifterLMS scripts would cancel each
other out. Once I installed WP S & S, I am able to manage which scripts fire off
on what pages/posts. That is gold!! If you can, please develop it further, I would
definitely throw money at such a robust tool. Thanks!

![](https://secure.gravatar.com/avatar/cfb9a1d3fc9debab2b1925bfa44dc267270ef25897f676e9b525001024163802?
s=60&d=retro&r=g)

### 󠀁[suggest faster update and improve this plugin](https://wordpress.org/support/topic/suggest-faster-update-and-improve-this-plugin/)󠁿

 [klofseo](https://profiles.wordpress.org/klofseo/) 2019-01-20

no doubt, this plugin is very goog plugin, it is simple and powerful. but from now
on, this plugin already has been update and add more functions according to user
feedback and youself developing plan. i think this is not fit. i think your plan
is very good, and there are very many good idea here. even i suggest you sales this
plugin, but you should do more thing for this. so your user can give better plugin,
you can get corresponding reward, it is real fair. or you should give up this plugin
if you have not enough time or other reasons.

![](https://secure.gravatar.com/avatar/10b8356383babdfbfc0949f9afc27752c4eff9c81a3734bd5a3dece5993676bb?
s=60&d=retro&r=g)

### 󠀁[Fantastic!](https://wordpress.org/support/topic/fantastic-1696/)󠁿

 [axeman41](https://profiles.wordpress.org/axeman41/) 2018-01-29

What a great plugin…exactly what I needed! I would like to also suggest that an 
import/export settings feature would be very useful.

![](https://secure.gravatar.com/avatar/7348031ace9155bfa883a0db18166245e937f3376b72b0d26a7db85687fed379?
s=60&d=retro&r=g)

### 󠀁[outSTANDING!](https://wordpress.org/support/topic/outstanding-259/)󠁿

 [Glenn](https://profiles.wordpress.org/rglennnall/) 2017-08-21 1 reply

out…STANDING PLUGIN!!! Just what I needed – what you need when you have plugins 
loading pages sitewide when you only need it to load on one page. Whoever said it’s“
useless” just doesn’t get it. way cool.

![](https://secure.gravatar.com/avatar/030ccd31e4e58049937d971adb6273537e665cc5cbed6b49d81a99d1d3474711?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-14495/)󠁿

 [dhesse90](https://profiles.wordpress.org/dhesse90/) 2017-07-18 1 reply

This plugin is great! I’ve been using it for the last several months and it has 
really helped to cut down the number of HTTP requests and also helps my pages load
faster. The rules are easy to set up, and the global function along with sync with
global make the job a lot faster. Lastly, the support is excellent and lightning
fast!

 [ Read all 15 reviews ](https://wordpress.org/support/plugin/wp-script-optimizer/reviews/)

## Contributors & Developers

“WP Scripts & Styles Optimizer” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Hendrik Lersch ](https://profiles.wordpress.org/riddler84/)

[Translate “WP Scripts & Styles Optimizer” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-script-optimizer)

### Interested in development?

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

## Changelog

#### 0.4.5

 * CHANGE: Remove cURL and use WP-HTTP API instead to improve compatibility.

#### 0.4.4

 * FIX: Last update produces a bug that could potentially prevent scripts from being
   enqueued. This is now fixed.

#### 0.4.3

 * FIX: Localized script data will now be used dynamically to make sure data like
   nonces, which are being created at runtime, work properly.

#### 0.4.2

 * FIX: Add useragent to CURL requests to prevent HTTP error 403.

#### 0.4.1

 * FIX: Handles without a src-value will be registered and enqueued correctly now.
 * CHANGE: The lists don’t show handles without a src-value anymore. These handles
   don’t represent real files and are only there to force other scripts or styles
   to be enqueued. (e.g. for backwards compatibility).

#### 0.4.0

 * Required WordPress version raises to 4.4.0.
 * Changed the upper tabs to “Global” and “Single pages”.
 * Scripts and styles can now be controlled on one page. Header and footer can be
   switched via tabs.
 * Added the ability to control also single pages. They can be added and controlled
   via the “Single Pages” tab.
    - New pages can be added by pasting the url into the input field and click on“
      Get Scripts & Styles”.
    - Saved pages can be found in a list on the left. After clicking a list item,
      the scripts & styles associated with this page will be loaded.
    - The settings for single pages can be easily synchronized with the global settings,
      if needed.
    - All saved pages can be updated or deleted as once or separately.
 * Improved admin notices for better information about things that happen, e.g. 
   adding/deleting entrys or theme/plugin changes.

#### 0.3.0

 * Changed the name of the plugin to “WP Scripts & Styles Optimizer”.
 * Major improvements in the way how files are handled. Instead of simply deregister
   any deactivated or conditional file, it now deregisters all files and enqueue
   them back if not deactivated completely or conditions didn’t match. This means
   more control over the whole process and is a step forward with view on future
   features.
 * CSS-files can now moved into the footer! That was only possible due to the change
   above.
 * The WordPress JavaScript “wp-embed” can now be changed by the plugin.
 * The “jquery” handle has now an explanation text, that it’s only a placeholder
   for “jquery-core” and “jquery-migrate”.
 * Added plugin version to own javascript and css files to force a reload after 
   update (caching).

#### 0.2.2

 * Improve internal handling of default options
 * Fix a problem that prints a PHP Error in some cases.

#### 0.2.1

 * Complete new UI that no longer use WordPress’s WP_List_Table class. Instead of
   one table list, it is now divided into lists for scripts and styles, which are
   itself separated in header and footer.
 * Including Font-Awesome Icon-Library for styling purposes.
 * Added a new option to reset every script or style to its original state. (Per
   item or as bulk-action)
 * Added a help page to explain the plugin’s functions.
 * Several code improvements

#### 0.1.2

 * Fixed a bug, which triggers a PHP notice for some users

#### 0.1.1

 * Fixed some bugs

#### 0.1.0

 * Initial Release

## Meta

 *  Version **0.4.5**
 *  Last updated **8 ел ago**
 *  Active installations **100+**
 *  WordPress version ** 4.4.0 or higher **
 *  Tested up to **4.8.28**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-script-optimizer/)
 * Tags
 * [css](https://tt.wordpress.org/plugins/tags/css/)[javascript](https://tt.wordpress.org/plugins/tags/javascript/)
   [scripts](https://tt.wordpress.org/plugins/tags/scripts/)[styles](https://tt.wordpress.org/plugins/tags/styles/)
 *  [Advanced View](https://tt.wordpress.org/plugins/wp-script-optimizer/advanced/)

## Ratings

 4.7 out of 5 stars.

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

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

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

## Contributors

 *   [ Hendrik Lersch ](https://profiles.wordpress.org/riddler84/)

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XYR3H8B74NE4Y)