I did some tests on my site. This plug-in is slow. Here is what I found.
Under the checkout page, if I selected a different shipping method in the shipping quote section, jquery-3.5.1.min.js will be reloaded remotely. It will take more than 1000ms to load this script. When I first enter this checkout page (shipping method is not selected), jquery-3.5.1.min.js is always loaded from cache with no delay. Even I refresh the whole checkout page, this script will be always loaded from the cache. But I don't know why it will be force to load from remote server when I choose a different shipping method every time, not from the cache. If this script file can be loaded from cache as well, it will be much faster. There is an option "Load Minified Script Files?" under the plug-in settings page. I tried both true and false, no difference. jquery-3.5.1.min.js will be loaded by both ways. Not sure if it is related to the warning generated before.
I tried the recommended code for jquery.checkout_one.js from @niccol post, seems better (by the original code, firefox sometimes will pop up slow load warning, new code does not show warning), but still over 1000ms.
PHP Code:
// -----
// Monitor the billing- and shipping-address blocks for changes.
//
jQuery(document).on('change', '#select-address-bill', function(event) {
jQuery('#checkoutPayment > .opc-overlay').addClass('active');
useSelectedAddress('bill', this.value);
});
jQuery(document).on('change', '#select-address-ship', function(event) {
jQuery('#checkoutPayment > .opc-overlay').addClass('active');
useSelectedAddress('ship', this.value);
});
Bookmarks