Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #829669

    Hi, im having a issue with woocommerce ajax, both ‘admin-ajax.php’ and ‘/?wc-ajax=get_refreshed_fragments’, they are taking almost two seconds to load, and its slowing down my website Is there a way to make it faster without disabling it? Thanks.


    Hey Guilherme,

    Please, may you provide to us your website link and the WP and FTP credentials?

    Best regards,
    John Torvik


    hi, in the private



    The script loads in about 1.10s secs which is quite slow, indeed. Is the site on a shared hosting? I do found an error in the console after adding a product.

    validador-wc.js:1 Uncaught TypeError: $ is not a function
    at validar (validador-wc.js:1)
    at dispatch (wp-includes-js-jquery-jquery-1.12.4.js:1)
    at r.handle (wp-includes-js-jquery-jquery-1.12.4.js:1)

    Do you need the “validator” plugin? Please deactivate it temporarily then test the page again.

    Best regards,



    UPDATE: Please try the following code in the functions.php file.

     * Dequeue wc-fragments
     * Removes synchronous wp-admin/ajax request that happened on every page load when cart is non-empty.
     * This script is not in use and should be safe to disable.
    function dequeue_wc_fragments() {
        wp_dequeue_script( 'wc-cart-fragments' );
    add_action( 'wp_enqueue_scripts', 'dequeue_wc_fragments', 100 );

    NOTE: This may cause a few errors in the cart. Let us know if you find anything.

    Best regards,


    Hi @ismael,

    i deactivate the plugin, this code you gave me broke the cart popup and counter. still the admin-ajax.php is taking a lifetime to load, and this stats to happen after the last update, before it was really fast so much that i only realise that now



    The site speed is below average when I checked it on pingdom but you can improve it by doing the following steps.


    Best regards,

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