Title: javascript error
Last modified: August 23, 2022

---

# javascript error

 *  Resolved [jerrystampfer](https://wordpress.org/support/users/jerrystampfer/)
 * (@jerrystampfer)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-219/)
 * Hi there – I am tying to use a plugin feature – EAE wrapper link – but it won’t
   work.
    I contacted the plugin support and they have identified a javascript error
   that is causing the plugin feature not to work. When I inspected the element 
   it is identifying errors in siteground optimizer. Could you please take a look
   at this and get back to me? The elements concerned are the purple columns at 
   the top of the page immediately under the header image. Many thanks and best 
   wishes, Jerry.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-219%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Georgi Ganchev](https://wordpress.org/support/users/georgiganchev/)
 * (@georgiganchev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-219/#post-15942746)
 * Hello [@jerrystampfer](https://wordpress.org/support/users/jerrystampfer/),
 * We have investigated the issue and it appears that the error is due to a minified
   JS script. The error is not present once the **Minify JavaScript Files** option
   under SG Optimizer > Frontend > Javascript is deactivated.
 * There is no need to keep that option deactivated as we have created custom filters
   that allow you to exclude the particular script handle that is causing the issue.
 * You can exclude the script from being minified using the filter we’ve designed
   for that purpose. Here’s an example of the code, you can add to your functions.
   php file:`
 *     ```
       add_filter( 'sgo_js_minify_exclude', 'js_minify_exclude' );
       function js_minify_exclude( $exclude_list ) {
           $exclude_list[] = 'script-handle';
           $exclude_list[] = 'script-handle-2';
   
           return $exclude_list;
       }
       ```
   
 * I tried to find the particular script handle that triggers the error but to no
   avail. You should contact the developers of the plugin and ask them to provide
   you with the handle that you would need to exclude.
 * Best regards,
    Georgi Ganchev
 *  Thread Starter [jerrystampfer](https://wordpress.org/support/users/jerrystampfer/)
 * (@jerrystampfer)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-219/#post-15942943)
 * Hi there – many thanks for your fast response. I’m not very technical so dealing
   with scripts is more than challenging for me. I will save what you have told 
   me, though, but in the meantime I have sorted the problem by using an alternative,
   simpler, plugin.
    Many thanks for your help. Best wishes, J
 *  Plugin Support [Georgi Ganchev](https://wordpress.org/support/users/georgiganchev/)
 * (@georgiganchev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-219/#post-15942965)
 * You are most welcome [@jerrystampfer](https://wordpress.org/support/users/jerrystampfer/)!
 * Best wishes to you too.
    Georgi

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

The topic ‘javascript error’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Georgi Ganchev](https://wordpress.org/support/users/georgiganchev/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-219/#post-15942965)
 * Status: resolved