Skip to content

Instantly share code, notes, and snippets.

@Uranbold
Created April 26, 2018 10:07
Show Gist options
  • Save Uranbold/1b7521ade426a187291a10ce0c670a96 to your computer and use it in GitHub Desktop.
Save Uranbold/1b7521ade426a187291a10ce0c670a96 to your computer and use it in GitHub Desktop.
Need to disable it because the Pingdom Tools test has shown Empty Ajax Requests
add_action( 'wp_enqueue_scripts', 'dequeue_woocommerce_cart_fragments', 11); function dequeue_woocommerce_cart_fragments() { if (is_front_page()) wp_dequeue_script('wc-cart-fragments'); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment