Why aren't all the images on a page optimized by Autoptimize?
When the image optimization service provided by Autoptimize is on (see Settings > Autoptimize > Images), Autoptimize will look for PNG, GIF and JPG files in "img" tags, "picture" tags or as background images in the "style" attribute of a "div". For example:
Autoptimize will also look for images in CSS files that are loaded from your own domain, and change the "src" value (the source) to the image served by ShortPixel CDN.
If you find that images are supposed to be served by our CDN, and you still have some credits available, the most likely cause for this issue is that you ran out of the original 500 free credits for your website and you didn't associate your domain to your account. Here's how to do it.
If your domain is associated to your account, and there are still images not served by our CDN, then:
- Your images are loaded from other domains
- Your images are loaded with an AJAX call
- Your images are defined in custom attributes, like <div data-img="image.jpg">
To solve this, you can try using our plugin ShortPixel Adaptive Images.