Hmmm, somewhat surprised; I use lazyload myself on my own site and have no problems with images being loaded over http. What are the options you have active on AO’s images tab?
Thread Starter
tjdyo
(@tjdyo)
Well, it’s not that the images weren’t loading with HTTP. It’s the fact that the whole website including the source images are loading via HTTPS.
When Autoptimize lazy-loads those images, it swaps/links the files to HTTP. The issue with this is it makes browsers still recognize the website as insecure. Firefox spits back that the images are the only things not secure. After doing some digging, my team and I realized it was Autoptimize’s autooptimizeimages.php file.
After changing that line of code, the website loads 100% as a secure connection and all the images are being loaded via HTTPS.
As far as settings go, I just have “Lazy-load images?” checked off in the Images section.
-
This reply was modified 6 years, 8 months ago by
tjdyo.
-
This reply was modified 6 years, 8 months ago by
tjdyo.
-
This reply was modified 6 years, 8 months ago by
tjdyo.
Even more surprised in that case; the code you changed is only executed if “optimize images” is also active (it takes care of fetching “lqip” images from Shortpixel)? Did some more tests with lazyload and cannot reproduce images being loaded over http:// in that scenario either I’m afraid @tjdyo, pretty much at a loss what is going wrong for you there …