• Resolved cobalt5

    (@cobalt5)


    Is there a way to deactivate the external loading of jsdeliver? It cannot be unqued via wp_dequeue_script( ‘sendcloud-checkout-widget’ ) which would require us to change the sourcecode of the plugin itself.

    This is a great problem for the EU market since this requires us to add them to the cookie scripts, even if the the UI elements are not used in the checkout.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sendcloud

    (@sendcloudbv)

    Hi @cobalt5,

    Thank you for posting your question.

    Deactivating jsdeliver’s external loading isn’t possible in our pre-built module for WooCommerce. Nevertheless, we would like to learn more about the problem. If there are any changes we can make to the module to make it more robust, our development team will consider them.

    Could you please create a support ticket directly from your Sendcloud account? We need some information from your Sendcloud account and WooCommerce store. You can find more information here: https://support.sendcloud.com/hc/en-us/articles/360046514071-How-to-get-support-from-Sendcloud

    We will assist you further via our tickets system.

    Best regard,
    Edson | Sendcloud

    Thread Starter cobalt5

    (@cobalt5)

    Thank you for the quick reply. I don′t have a Sendcloud account since I do the implementation for a client.

    We found 2 ways of solving the issue:

    1: Change the plugin file class-base-checkout-handler.php and change the constant CHECKOUT_PLUGIN_UI_JS to a locally hosted file.
    2: Block the loading of jsdelivr via a cookie consent plugin

    Both ways are not ideal because the first one would require us to manually change the code after every update. The second option however is somewhat legally dubious since the privacy policy would have to be available in the visitors language, which it isn′t. Additionally, there is the requirement to name the company which handles the data, which is also not obvious from the jsdelvr website. All in all a legal risk for every company which tries to stay GDPR compliant.

    So please consider changing the code to use a local version of that file or a way to deactivate it if the UI elements are not used in the checkout.

    Plugin Author Sendcloud

    (@sendcloudbv)

    Hi?@cobalt5,

    Thank you for providing this detailed information. We will check this matter with our development team.

    Could you please send us an email at [email protected] and mention in the subject: deactivate-jsdeliver/#post-17168191? Please provide us with the WooCommerce webshop of your client.

    Best regards,? ?
    Edson | Sendcloud

    Similarly to @cobalt5, I noticed a slowdown on my website due to the content served by jsDelivr. Given that I do not utilize the widget for nominated day delivery, I have wrote a code snippet to disable the CHECKOUT_PLUGIN_UI_JS script, thereby preventing the loading of content from jsDelivr. You can add this to your functions.php file.

    // Remove Sendcloud jsDelivr Scripts
    add_action(‘wp_enqueue_scripts’, ‘remove_checkout_plugin_ui_script’);

    function remove_checkout_plugin_ui_script() {
    // Dequeue and deregister the CHECKOUT_PLUGIN_UI_JS script
    wp_dequeue_script(‘sendcloud-checkout-widget’);
    wp_deregister_script(‘sendcloud-checkout-widget’);
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deactivate jsdeliver’ is closed to new replies.