Title: sgo_javascript_combine_excluded_inline_content
Last modified: July 20, 2023

---

# sgo_javascript_combine_excluded_inline_content

 *  Resolved [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/sgo_javascript_combine_excluded_inline_content/)
 * Needs documentation and a simple, easy way to use, such as the id attribute on
   the script tag. ‘first few symbols of inline content script’ is absurd. It does
   not seem to work. Support chat is no help. Very frustrating experience. Had to
   disable Combine JS.
 * `function farmforce_exclude_from_sgo( $exclude_list ) {
   $exclude_list[] = 'jQuery(
   document).on("cmplz_cookie_banner_data", nrichtag);';return $excludes;}add_filter('
   sgo_javascript_combine_excluded_inline_content', 'farmforce_exclude_from_sgo');
 * `'jQuery(document).on("cmplz_cookie_banner_data", nrichtag);'` is literally the
   first line of the inline script, and the filter does not work.

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

 *  Plugin Support [Dimitar Petrov](https://wordpress.org/support/users/demiro/)
 * (@demiro)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/sgo_javascript_combine_excluded_inline_content/#post-16910256)
 * Hello [@swinggraphics](https://wordpress.org/support/users/swinggraphics/),
 * I am unable to find any issues with the created filter. As I can see this inline
   script should be added by the Complianz plugin, however I was unable to replicate
   the issue. I set up the plugin, but I was unable to generate the required inline
   script.
 * Would you please provide us with instructions on how we can enable the script
   so we can replicate the issue and investigate the case further? Also, if the 
   site in question is hosted on SiteGround servers, please open a ticket on our
   end, as that way we will be able to fully replicate and investigate the issue
   quickly.
 * Thank you for your cooperation.
 * Regards,
   Dimitar
 *  Thread Starter [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/sgo_javascript_combine_excluded_inline_content/#post-16910391)
 * With combine JS enabled in Optimizer, the script tag is removed from the page.
   The filter does not work to keep it on the page. The script is not added by Complianz.
   It really doesn’t matter how it gets added to the page, as Optimizer runs on 
   the generated code. After going in circles with chat, they opened a ticket. The
   reply to the ticket was “you can disable JS combining”. I am leaving it at that
   because it isn’t worth the time. But it is frustrating and disappointing.
 *  Plugin Support [Dimitar Petrov](https://wordpress.org/support/users/demiro/)
 * (@demiro)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/sgo_javascript_combine_excluded_inline_content/#post-16910442)
 * I’m afraid that we cannot find the ticket using the information provided in this
   forum. Would you please update the ticket with the link to this forum thread 
   and request the issue to be revised? We will be glad to investigate the case 
   further.
 * Regards,
   Dimitar
 *  Plugin Support [Gergana Petrova](https://wordpress.org/support/users/gpetrova/)
 * (@gpetrova)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/sgo_javascript_combine_excluded_inline_content/#post-16952074)
 * Hello [@swinggraphics](https://wordpress.org/support/users/swinggraphics/), 
   
   Since we haven’t heard back from you in the past couple of weeks, we will be 
   marking the topic as Resolved. You will still be able to post new replies, should
   additional questions arise. Best Regards,Gergana Petrova
 *  Thread Starter [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/sgo_javascript_combine_excluded_inline_content/#post-16952085)
 * The bug still exists, but I cannot waste more time on it.

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

The topic ‘sgo_javascript_combine_excluded_inline_content’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/sgo_javascript_combine_excluded_inline_content/#post-16952085)
 * Status: resolved