I installed ShortPixel Adaptive Images but it doesn't seem to work.

If you installed ShortPixel Adaptive Images (SPAI) on your website and it doesn't seem to work then the usual reasons are:

  • the CDN URL is not correct, by default it should be like below, only change it if you know what you're doing:

  • you entered a full URL under Settings > ShortPixel AI > Advanced > Excluded selectors. This field can contain only CSS selectors.

  • you use a caching plugin or your hosting provider uses a caching mechanism. The solution is to flush your cache.
  • there is another plugin or theme that has lazy load activated and this conflicts with SPAI. The solution is to deactivate this functionality in the plugin or theme that use it.

Known conflicts and solutions:

LiteSpeed Cache
  • You need to have disabled the option JS Combine. Go to LiteSpeed Cache > Settings > [6] Tuning (you have to have advanced options enabled). There disable JS Combine or (possibly better) exclude ai.min.js from being combined. (thanks to Mads)

JetPack

  • usually you need to deactivate JetPack as it can conflict with ShortPixel Adaptive Images.
Hummingbird
  • In some cases having Hummingbird plugin active will disable jQuery serving. Currently ShortPixel Adaptive Images requires jQuery to function so the solution is to deactivate this plugin.

Autoptimize

  • you need to have "Image Optimization" and "Lazy load" turned off

  • and also you may need to have "Aggregate CSS" option turned off

WP Rocket

  • You need to deactivate lazy-load for images
  • And you may also need to deactivate the "Combine JS files

Swift Performance

  • There's a chance the styles merging is not compatible with SPAI. Please disable it under Settings > Swift Performance > Optimization > Styles > Merge Styles

SG Optimizer

  • First, make sure you have disabled the lazy load option on SG Optimizer > Image Optimization > Lazy Load Images

  • And also, to make sure that your images load as fast as possible, disable the option SG Optimizer > Frontend Optimization > Load Render-blocking JavaScript Files Asynchronously

Still need help? Contact Us Contact Us