• Resolved asarosenberg

    (@asarosenberg)


    Hello,

    While optimizing some WordPress-sites I’ve noticed that WooCommerce adds ~19 MB to the Gutenberg editor screen (/wp-admin/post.php). It’s primarily these files which are 2.2 MB each:

    /woocommerce/assets/js/blocks/products-attribute.js?ver=3.6.5
    /woocommerce/assets/js/blocks/product-category.js?ver=3.6.5
    /woocommerce/assets/js/blocks/product-on-sale.js?ver=3.6.5
    /woocommerce/assets/js/blocks/product-new.js?ver=3.6.5
    /woocommerce/assets/js/blocks/handpicked-products.js?ver=3.6.5
    /woocommerce/assets/js/blocks/product-best-sellers.js?ver=3.6.5
    /woocommerce/assets/js/blocks/product-top-rated.js?ver=3.6.5
    /woocommerce/assets/js/blocks/featured-product.js?ver=3.6.5

    This makes the Gutenberg editor quite slow to load.

    I found this ticket which seems to contain a fix.

    https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/571

    It’s part of a subproject though (Milestone 2.2) and I’d love to know in which WooCommerce-version this fix will go out.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @asarosenberg,

    That’s a great question. So this has already been merged into the blocks plugin in version 2.2.

    WooCommerce 3.7 that just came out this week ships with blocks 2.3 so it should have that update inside of it now.

    If you haven’t updated yet, you can go on and do that and see if it speeds things up for you.

    Let me know if you have any questions,

    Thread Starter asarosenberg

    (@asarosenberg)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Size of the block JavaScript-files’ is closed to new replies.