Slow variation image swap
-
Hi David,
Not a bug, but I noticed something that seems odd to me. On both my test themes, with your plugin deactivated, hitting ‘Choose an option’ causes WooCommerce to initiate a request for the new variation image in the ‘Single Product Image’ size.
With your plugin activated, the request is for the full size image. The full size image is A LOT larger and, until the browser figures out it’s in it’s cache, leads to quite a delay before the new image is displayed.
Also, you’re adding a cache busting query string to the image name, which, I guess, guarantees that it will never be served from the cache, so every ‘Choose an option’ is a new download of the full size image. I see the same delay in your demo.
This seems to be the case whether or not the ‘Enable WooCommerce default product image’ option is enabled.
Bottom line, because of the delay, when I hit ‘Choose an option’ I see the current variation fade out, then flash back into visibility. Then, eventually, it’s replaced by the new variation image.
I find that janky and problematic. Is that not the way it should be working?
The topic ‘Slow variation image swap’ is closed to new replies.