Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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 isopasse.com.br. Is there a way to make it faster without disabling it? Thanks.

    #830552

    Hey Guilherme,

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

    Best regards,
    John Torvik

    #830638

    hi, in the private

    #832783

    Hi,

    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,
    Ismael

    #832788

    Hi,

    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,
    Ismael

    #832870

    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

    #834944

    Hi,

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

    // https://kriesi.at/support/topic/site-running-very-slow/#post-762802
    // https://kriesi.at/support/topic/seo-google-page-insights-blocking-rendering-ressources-above-the-fold/#post-720432

    Best regards,
    Ismael

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