I disabled all styles and scripts for certain pages using the following code:
remove_action( 'wp_enqueue_scripts', [ WC_Frontend_Scripts::class, 'load_scripts' ] );
remove_action( 'wp_print_scripts', [ WC_Frontend_Scripts::class, 'localize_printed_scripts' ], 5 );
remove_action( 'wp_print_footer_scripts', [ WC_Frontend_Scripts::class, 'localize_printed_scripts' ], 5 );
As the question implies, the only thing, which has now disappeared, I want to keep working is the XHR AJAX calls to wc-ajax=get_refreshed_fragments
. Is there any way to do this?