Title: Exclude from JavaScript Combination feature possible Bug
Last modified: January 17, 2023

---

# Exclude from JavaScript Combination feature possible Bug

 *  Resolved [Ivica Delic](https://wordpress.org/support/users/ivicad/)
 * (@ivicad)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-from-javascript-combination-feature-bug/)
 * Hi, when I use **Combine JavaScript Files feature **(Combine multiple JavaScript
   files into one to lower the number of requests your site generates), I can see
   its cookie banner from the applicaton I bought – [https://illow.io/](https://illow.io/)
   when I am logged into the site, but **I don’t see illow cookie banner in the 
   incognito/private window**, although I **Excluded from JavaScript Combination**
   illow script: [https://platform.illow.io/banner.js?siteId=bcbaae92-49c4-4b2c-8a3c-468fd3f7a44b](https://platform.illow.io/banner.js?siteId=bcbaae92-49c4-4b2c-8a3c-468fd3f7a44b)
   
   However, when I deactivate the whole **Combine JavaScript Files feature** – I
   can see this cookie banner normal in the incognito/private window as well (when
   I am not logged into the site as admin). However, I don’t want to deactivate 
   the whole feature **Combine JavaScript Files feature** on our sites, so I would
   like to know is there anyway to fix this (from any sides), so that Exclude from
   JavaScript Combination feature works for illow platform’s script as well? Thank
   you.
    -  This topic was modified 3 years, 4 months ago by [Ivica Delic](https://wordpress.org/support/users/ivicad/).
    -  This topic was modified 3 years, 4 months ago by [Ivica Delic](https://wordpress.org/support/users/ivicad/).
    -  This topic was modified 3 years, 4 months ago by [Ivica Delic](https://wordpress.org/support/users/ivicad/).
    -  This topic was modified 3 years, 4 months ago by [Ivica Delic](https://wordpress.org/support/users/ivicad/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-from-javascript-combination-feature-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Elena Chavdarova](https://wordpress.org/support/users/elenachavdarova/)
 * (@elenachavdarova)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-from-javascript-combination-feature-bug/#post-16380378)
 * Hello [@ivicad](https://wordpress.org/support/users/ivicad/),
   You can exclude
   the external sources from the combination using the following filter:
 *     ```wp-block-code
       add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script' );
       function js_combine_exclude_external_script( $exclude_list ) {
           $exclude_list[] = 'https://platform.illow.io';
   
           return $exclude_list;
       }
       ```
   
 * This way all scripts loaded from this domain will be excluded from the combination.
   
   I  suggest you apply the code into the theme functions.php file, clear the cache
   of the website and verify the results on your end.Best Regards,Elena
 *  Thread Starter [Ivica Delic](https://wordpress.org/support/users/ivicad/)
 * (@ivicad)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-from-javascript-combination-feature-bug/#post-16382365)
 * Thank you very much Elena for this answer/solution, I appreciate it. 
   BR, Ivica

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

The topic ‘Exclude from JavaScript Combination feature possible Bug’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ivica Delic](https://wordpress.org/support/users/ivicad/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-from-javascript-combination-feature-bug/#post-16382365)
 * Status: resolved