Title: Enable optimize Javascript will make the website slow
Last modified: September 21, 2016

---

# Enable optimize Javascript will make the website slow

 *  [Justlinera](https://wordpress.org/support/users/justlinera/)
 * (@justlinera)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/)
 * Hi,
 * When I enable ‘Optimize JavaScript Code’ the website will load slower than before.
   Id did not have this problem in earlier versions of Autoptimize, but the recent
   update caused this.
 * Can you help me resolve this issue?
 * Thank You

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8206087)
 * OK; do you have “aggregate inline JS” on?
 * and can you share your site’s URL?
    -  This reply was modified 9 years, 8 months ago by [Frank Goossens](https://wordpress.org/support/users/futtta/).
 *  Thread Starter [Justlinera](https://wordpress.org/support/users/justlinera/)
 * (@justlinera)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8222061)
 * Hi,
 * Yes I tried that. The link is: [https://goldenagecheesestore.com/](https://goldenagecheesestore.com/)
    -  This reply was modified 9 years, 8 months ago by [Justlinera](https://wordpress.org/support/users/justlinera/).
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8222126)
 * Impossible for me to assess now I’m afraid, as you have JS optimization turned
   off. Do you have a non-production site where we could investigate this further?
 * groetjes,
    frank
 *  Thread Starter [Justlinera](https://wordpress.org/support/users/justlinera/)
 * (@justlinera)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8230542)
 * Hi,
 * Yes this a non production website:
    [http://corpa-advies.bureaufeith1.nl/en/home-en/](http://corpa-advies.bureaufeith1.nl/en/home-en/)
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8231295)
 * hi justlinera;
    are JS settings the default ones (i.e. “aggregate inline JS” 
   off + exclude `js/jquery/jquery.js` + NOT “force JS in head”)?
 * kind regards,
    frank
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8231739)
 * if that does not work (and as I’m seeing a “white page of death” when trying 
   to access your non-prod site which usually is a bad sign) try to switch to the
   legacy minifiers (as per [the FAQ](https://wordpress.org/plugins/autoptimize/faq/))
   by adding this to your wp-config.php:
 * `define("AUTOPTIMIZE_LEGACY_MINIFIERS","true");`
 * I would also be interested in any error you might find in your php errorlog.
 *  Thread Starter [Justlinera](https://wordpress.org/support/users/justlinera/)
 * (@justlinera)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8233580)
 * I added the code in the wp-config and that fixed the ‘white page of death’. These
   where the errors I was getting:
 * – PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/corpa/
   domains/corpa-advies.nl/public_html/wp-content/plugins/autoptimize/classes/external/
   php/minify-2.3.1-jsmin.php on line 295, referer: [https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/)
   –
   PHP Fatal error: Unknown: Cannot use output buffering in output buffering display
   handlers in Unknown on line 0, referer: [https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/)–
   PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/corpa/
   domains/corpa-advies.nl/public_html/wp-content/plugins/autoptimize/classes/external/
   php/minify-2.3.1-jsmin.php on line 295, referer: [http://corpa-advies.bureaufeith1.nl/wp-admin/options-general.php?page=autoptimize](http://corpa-advies.bureaufeith1.nl/wp-admin/options-general.php?page=autoptimize)–
   PHP Fatal error: Unknown: Cannot use output buffering in output buffering display
   handlers in Unknown on line 0, referer: [http://corpa-advies.bureaufeith1.nl/wp-admin/options-general.php?page=autoptimize](http://corpa-advies.bureaufeith1.nl/wp-admin/options-general.php?page=autoptimize)
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8233666)
 * thanks for the confirmation & for the error-info. There’s likely one specific
   file (which will be one that is not “common”) on which the updated minifier is
   choking. I’ll see if I can reproduce this using the JS on your site.
 * frank

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Enable optimize Javascript will make the website slow’ is closed to new
replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/enable-optimize-javascript-will-make-the-website-slow/#post-8233666)
 * Status: not resolved