• Resolved Generosus

    (@generosus)


    Good Day,

    We are using a code snippet to dequeue WordPress’ jQuery file and enqueuing instead Cloudflare’s jQuery file. Both Versions 3.7.1

    We have excluded the Clouflare jQuery file in your plugin from JS Combination, but WordPress’ jQuery files still appears to be loading combined on the front end inside of Speed Optimizer’s combined JS file

    Details:

    (1) Cloudflare’s jQuery File Excluded from Combination: https://prnt.sc/XbO2rV0qFdSJ

    (2) jQuery Is Not Excluded from Combination (Front End): https://prnt.sc/y5ofSL3xS9_F

    (3) jQuery Still Combined (Confirmed): https://prnt.sc/J0-V-zEJiwmK

    Why is your plugin not respecting our exclusion request? Bug?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Georgi Ganchev

    (@georgiganchev)

    Hello @generosus,

    We will kindly ask you to open a Helpdesk request through your SiteGround Client Area so we can investigate the problem further.

    If we detect that the behavior is due to a bug we will open a task to our developers so they can review it.

    Best regards,
    Georgi Ganchev
    SiteGround.com

    Thread Starter Generosus

    (@generosus)

    Hi @georgiganchev,

    Will do – and report back here.

    Thank you.

    Thread Starter Generosus

    (@generosus)

    Update:

    We have found a workaround to exclude our external Cloudflare jQuery files from JS combination. We used the code snippet provided below.

    Meanwhile, SG Ticket No. 4630596 was issued to address this topic in more detail. Awaiting final resolution.

    Thank you!

    ———-

    add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_cloudflare_script' );
    function js_combine_exclude_external_cloudflare_script( $exclude_list ) {
    $exclude_list[] = 'cdnjs.cloudflare.com';
    return $exclude_list;
    }

    Thread Starter Generosus

    (@generosus)

    Update:

    Unfortunately, issuing the ticket did not help much. SiteGround Support (SS) essentially stated that the above code snippet was the way to solve our issue. SS did not technically address the reported findings. Since not a major issue for us, closing this topic as “Resolved.”

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not Working | Exclude jQuery from JS Combination’ is closed to new replies.