Title: Minify Option Missing JavaScript File
Last modified: March 1, 2024

---

# Minify Option Missing JavaScript File

 *  Resolved [ioka92kfa](https://wordpress.org/support/users/ioka92kfa/)
 * (@ioka92kfa)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/minify-option-missing-javascript-file/)
 * We use GiveWP, and the donor dashboard does not work when Speed Optimizer is 
   on — specifically, when JavaScript minification is on. Their support staff identified
   a script that is not listed in the Minification exclusion menu. How do I add 
   this script manually so that it is excluded? Otherwise I’ll have to completely
   deactivate JS minification entirely.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fminify-option-missing-javascript-file%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Georgi Ganchev](https://wordpress.org/support/users/georgiganchev/)
 * (@georgiganchev)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/minify-option-missing-javascript-file/#post-17467834)
 * Hello [@ioka92kfa](https://wordpress.org/support/users/ioka92kfa/),
 * The handler responsible for this behavior should be excluded from minification
   and you can continue using this option on your website.
 * You can **exclude scripts 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:
 *     ```wp-block-code
       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;
       }
       ```
   
 * More information and a full list of filters that can be used are found here:
 * [https://www.siteground.com/tutorials/wordpress/speed-optimizer/custom-filters/](https://www.siteground.com/tutorials/wordpress/speed-optimizer/custom-filters/)
 * Best regards,
   Georgi GanchevSiteGround.com

Viewing 1 replies (of 1 total)

The topic ‘Minify Option Missing JavaScript File’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Georgi Ganchev](https://wordpress.org/support/users/georgiganchev/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/minify-option-missing-javascript-file/#post-17467834)
 * Status: resolved