• Resolved 3kynox

    (@3kynox)


    Hello there,

    — I have to say the loading time problem I have applies to woocommerce and subscription addition to woocommerce using subscription variations as well.

    I have a product page that takes minimum 30 seconds to load because it have 72 variations. I detected page loading time increase a lot while I was adding variations.

    I had a problem when I was adding variations at the beginning when I passed exactly 40 variations where some of my items were not linked together. Here’s a screenshot that explains this:

    View post on imgur.com

    When I click on 1GB variation, 1 Core and 60Go is automatically highlighted.
    When I passed 40 variations, it was not linked anymore and page load was a lot lot faster!

    Unfortunately, I need my variations being linked. I passed dozen of hours find a way to keep links after 40 variations adding this piece of code in my child theme functions.php:

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    return 100;
    }

    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘custom_wc_ajax_variation_threshold’, 100, 2 );

    The only thing I’ve done after this is to use two plugins that makes the whole website and my product page loads faster:
    – BJ Lazy Load
    – WC Speed Drain

    That decrease loading time to 20 – 25sc average.

    I’m using php7.1 and gzip compression is enabled. Server part looks like ok.
    Otherwise, I see peoples with more than 200 variations and that do not have my issues.

    I’m requiring your help WP Guys! I’m a php coder, so I’m not afraid of editing some code, I’m just not used to WordPress.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Insane product page loading time related to variations amount’ is closed to new replies.