Support » Plugin: Asset CleanUp: Page Speed Booster » Mini Cart Icon disappears

  • Resolved eltoine

    (@eltoine)


    Hi

    we use your plugin Asset CleanUp and since we use it, at the top the mini cart icon is disappearing. Actually I deactivated your plugin and now it shows again the mini cart icon.

    Can you help us?

    Elton Ferati

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @eltoine thanks for reporting a potential bug! This is very likely due to some wrong settings that were applied, but you never know, the plugin might need some updates, especially after the WordPress 5.5 update. Please re-activate the plugin and enable “Test Mode”. For your visitors, the website will load as if the plugin is deactivated. What I could do is apply /?wpacu_skip_test_mode to the URL which will help me debug it. Let me know once you do the change. Looking forward to having this fixed for you!

    HI Gabe Livan

    I activated the plugin with test mode. What else do I have to do with “/?wpacu_skip_test_mode” or is it you who makes that?

    Please check now..?

    Plugin Author Gabe Livan

    (@gabelivan)

    @eltoine It looks you have unloaded “wp-cart-fragments” which is needed site-wide as the mini-cart icon depends on it. When you append /?wpacu_skip_test_mode&wpacu_load_js=wc-cart-fragments to the URL which skips the “Test Mode” and forces the load of the /wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js file.

    I guess you thought it’s not needed. If you are sure that in some pages, the mini top cart should not be visible, then you can unload it, otherwise please keep it loaded. In future versions of the plugin, I will add more information about it to avoid accidental unloading.

    Hi Gabe Livan

    We also use WP Rocket, this is recomended from our hosting company and is installed standard. We never unloaded the “wp-cart-fragments”

    Do you know how I can load it again so it appears always?

    Plugin Author Gabe Livan

    (@gabelivan)

    @eltoine I noticed the mini cart is working fine now and “/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js” is now loading which is good! Something has changed there since I checked it last time. If you unloaded jQuery (not recommended at all for your configuration as you obviously need it) OR “js-cookie” (/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js), then “wc-cart-fragments” will also be unloaded as a result, since it’s a “child” of the two I just mentioned.

    To be on the safe side, please make sure the following files are never unloaded either by Asset CleanUp or by any other plugin or custom code you might be using:

    • /wp-includes/js/jquery/jquery.js
    • /wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js

    Hi, a freelancer did that for us, he puted the:

    Scripts (.js) Unloaded at BULK Changes

    wc-cart-fragments v4.3.3
    /wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js

    I wrote him cause of long loading time of “wc-ajax=get_refresh_fragments” and he used your plugin to reduce the loading time of that.

    Is the only way to make it visible always to “Remove site-wide rule” at your plugin or is it possible to use your plugin but making the mini cart icon always visible but optimizing loading time for “wc-ajax=get_refresh_fragments” ?

    Plugin Author Gabe Livan

    (@gabelivan)

    @eltoine what actually happened by unloading “wc-cart-fragments” was not just reducing the load time of the AJAX call, but blocking it completely and thus it affected the functionality of the mini cart.

    There’s no such feature in Asset CleanUp to actually optimize loading time for “wc-ajax=get_refresh_fragments“. There’s one in Asset CleanUp Pro, but it’s not as easy to use and needs polishment. I’d rather not promote it yet. Basically, it’s preventing other plugins from triggering (their PHP code) whenever the call is made in WooCommerce. But this requires careful setup as there could be other WooCommerce extensions that should be left loaded. A comprehensive tutorial would be ideal to write about this.

    Until the tutorial will be ready or the Pro feature will be improved (I’ll make it a priority), I’d suggest to leave the file to be loaded.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.