SRC replace method loads hidden images
-
Hi, I saw some slowdown when using this plugin. It seemed to load way too many images. I saw the following behaviour in Firefox Development Tools under Network.
I visit a product page. It has a product image gallery, it shows one big image and 8 thumbnails. If you click on a thumbnail it changes the big image.
Without ShortPixel Adaptive images with replace method SRC, the browser loads 9 images (big one and 8 thumnails). With SAI it loads 16 images (8 big images and 8 thumbnails).
It shouldn’t do that with the 7 big images which are not visible by default. If you just replace the src of the placeholder image, hidden or not, the browser will load the image.
There was something weird going on as well with a responsive image where a variant was loaded which was not used by the browser.
- The topic ‘SRC replace method loads hidden images’ is closed to new replies.