Duplicate call to ?wc-ajax=get_refreshed_fragments
-
Hi,
I noticed a site triggering duplicate calls to ?wc-ajax=get_refreshed_fragments
and traced the problem to:
ti-woocommerce-wishlist/asset/js/public.min.js$(window).load(function(e) { $(document.body).trigger('wc_fragment_refresh'); });
WooCommerce is already calling ?wc-ajax=get_refreshed_fragments and then the wishlist may be triggering the same call again before the first call has finished.
Naturally the result is the same for both calls.Since the call is 1s round trip, it’s highly desirable not to duplicate it.
Would it be safe to just comment this out??(also does the wishlist script actually need to be loaded on every single page or could it be limited to relevant pages)
The page I need help with: [log in to see the link]
- The topic ‘Duplicate call to ?wc-ajax=get_refreshed_fragments’ is closed to new replies.