• Resolved swinggraphics

    (@swinggraphics)


    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

    (@demiro)

    Hello @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

    (@swinggraphics)

    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

    (@demiro)

    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

    (@gpetrova)

    Hello @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

    (@swinggraphics)

    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.