Set Woocommerce woocommerce_get_refreshed_fragments call admin-ajax.php run after page loads

1.8k Views Asked by At

I optimzed my site with cahce and it speeds to about 2 sec load time. The problem is that even that everything is done loading, but there are is 2 ajax call to admin-ajax.php with a action called woocommerce_get_refreshed_fragments that slows the load in another 3- 4 seconds. Is there is a way to set to run this action after page load completed? Something like

add_action("print_woocommerce_get_refreshed_fragments_script","after_load" ) 

(only example). Or any other idea to solve this and make this call to admin-ajax.php after page done loading. Thanks. The function appears here https://github.com/jpBenfica/woocommercePT/blob/master/woocommerce-ajax.php

0

There are 0 best solutions below